/* =========================================================
   PAGES LÉGALES (CGV, Confidentialité) — lecture longue et dense.
   Chargé uniquement par cgv.html et confidentialite.html.
   Priorité : lisibilité, colonne étroite, hiérarchie typo nette.
   ========================================================= */

.legal { padding-block: clamp(2.5rem, 6vw, 5rem); }

/* Colonne de lecture un peu plus large que le défaut (760px) pour aérer le
   texte juridique dense, sans atteindre la largeur des sections marketing. */
.legal .container-narrow { max-width: 860px; }

/* ---- En-tête de page ---- */
.legal-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; margin-top: .6rem; }
.legal-subtitle { font-family: var(--font-title); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--terracotta-deep); margin-top: .9rem; }
.legal-meta { font-size: var(--fs-small); color: var(--espresso-soft); margin-top: .6rem; }

/* ---- Corps ---- */
.legal-body { color: var(--espresso-soft); }
.legal-body > p { margin-bottom: 1.15rem; }
/* Le 1er paragraphe d'intro garde la même taille que le reste du corps de texte
   (une seule taille pour tout le texte courant, hors titres/sous-titres). */
.legal-intro { color: var(--espresso-soft); }
.legal-body strong { color: var(--espresso); font-weight: 600; }

/* Liens : vrais liens cliquables, accent terracotta cohérent avec le site */
.legal-body a { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color .2s ease; word-break: break-word; }
.legal-body a:hover { color: var(--terracotta-darker); }

/* Titres de section — margin-bottom : espace titre → paragraphe suivant */
.legal-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--espresso);
  margin-top: clamp(2.75rem, 5vw, 3.75rem); padding-top: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.15rem;
  border-top: 1px solid var(--line); scroll-margin-top: 110px;
}
.legal-body h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--espresso); margin-top: 2.1rem; margin-bottom: .65rem; }

/* Bloc d'identité / coordonnées (prix, médiateur…) en paragraphe à lignes */
.legal-identity { line-height: 1.9; }

/* Liste labellisée (responsable / identification) : label en gras + valeur,
   sans puce, pour qu'aucun mot ne se retrouve orphelin sur sa ligne. */
.legal-body ul.legal-deflist { margin: .25rem 0 1.4rem; }
.legal-body ul.legal-deflist li { padding: .35rem 0; }
.legal-body ul.legal-deflist li::before { content: none; }
.legal-body ul.legal-deflist li strong { color: var(--espresso); }

/* ---- Listes : puces terracotta, cohérentes avec le reste du site ---- */
.legal-body ul { margin: .25rem 0 1.4rem; }
.legal-body ul li { position: relative; padding: .4rem 0 .4rem 1.5rem; }
.legal-body ul li::before {
  content: ""; position: absolute; left: 0; top: calc(.4rem + .825em - 4px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta);
}

/* Liste ordonnée (processus en étapes) : pastilles numérotées terracotta */
.legal-steps { counter-reset: step; margin: .25rem 0 1.4rem; }
.legal-steps li {
  position: relative; padding: .4rem 0 .4rem 2.6rem; min-height: 1.9rem;
  counter-increment: step; margin-bottom: .35rem;
}
.legal-steps li::before {
  content: counter(step); position: absolute; left: 0; top: .35rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--terracotta-deep); color: var(--cream);
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Sommaire / table des matières ---- */
.legal-toc {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  margin: clamp(2rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.legal-toc-title {
  font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta-deep);
  margin-bottom: 1.1rem;
}
.legal-toc-list { list-style: none; counter-reset: toc; columns: 2; column-gap: 2.75rem; }
.legal-toc-list li { counter-increment: toc; break-inside: avoid; position: relative; padding: .3rem 0 .3rem 2rem; }
.legal-toc-list li::before {
  content: counter(toc) "."; position: absolute; left: 0; top: .3rem;
  color: var(--terracotta-deep); font-weight: 600; font-variant-numeric: tabular-nums;
}
.legal-toc-list a { color: var(--espresso); text-decoration: none; font-size: .96rem; }
.legal-toc-list a:hover { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Responsive ---- */
/* La bascule du menu burger et le footer responsive (composants partagés)
   vivent dans components.css, chargé par toutes les pages. */
@media (max-width: 640px) {
  .legal-toc-list { columns: 1; }
}
