/* ── Pages légales (conditions générales, confidentialité, remboursement) ──────────────────
   Une feuille à part plutôt qu'un ajout à `styles.css` : ces pages sont de la prose, elles
   n'utilisent presque rien du reste du site, et toucher `styles.css` obligerait à bumper le
   `?v=` de TOUTES les pages (cf. landing-deploy-mechanism). Elle se pose APRÈS `styles.css`,
   dont elle réutilise les tokens, l'en-tête, le pied de page et les boutons.

   Contrainte de fond : ces pages doivent rester lisibles et IMPRIMABLES — un acheteur, un
   service juridique ou un examinateur de Paddle en fait un PDF. D'où la colonne étroite, les
   ancres stables et le bloc `@media print` en fin de fichier. ── */

.lg-hero { background: var(--g50); border-bottom: 1px solid var(--g200); padding: 56px 0 40px; }
.lg-hero .wrap { max-width: 820px; }
.lg-kicker {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.lg-hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15; color: var(--ink-1); letter-spacing: -.02em;
}
.lg-lede { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--g600); }
.lg-dates {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13.5px; color: var(--g500);
}
.lg-dates b { color: var(--g700); font-weight: 600; }

.lg-body { padding: 40px 0 72px; }
.lg-body .wrap { max-width: 820px; }

/* Sommaire — ancres stables : un contrat se cite par son article, pas par son numéro de page. */
.lg-toc {
  border: 1px solid var(--g200); border-radius: var(--radius-lg); padding: 20px 22px;
  background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 40px;
}
.lg-toc h2 {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--g500); margin-bottom: 12px;
}
.lg-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 6px; }
@media (min-width: 720px) { .lg-toc ol { grid-template-columns: 1fr 1fr; gap: 6px 28px; } }
.lg-toc li { counter-increment: toc; font-size: 14.5px; line-height: 1.5; }
.lg-toc li::before { content: counter(toc) '. '; color: var(--g400); font-variant-numeric: tabular-nums; }
.lg-toc a { color: var(--g700); border-bottom: 1px solid transparent; transition: var(--transition); }
.lg-toc a:hover { color: var(--blue); border-bottom-color: currentColor; }

.lg-sec { margin-bottom: 38px; scroll-margin-top: 90px; }
.lg-sec h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.3;
  color: var(--ink-1); letter-spacing: -.01em; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--g200);
}
.lg-sec h3 {
  font-family: var(--font-sans); font-weight: 700; font-size: 16px; color: var(--g900);
  margin: 22px 0 8px;
}
.lg-sec p { font-size: 15.5px; line-height: 1.72; color: var(--g700); margin-bottom: 14px; }
.lg-sec ul { margin: 0 0 16px; padding: 0; list-style: none; }
.lg-sec li {
  position: relative; padding-left: 20px; margin-bottom: 9px;
  font-size: 15.5px; line-height: 1.7; color: var(--g700);
}
.lg-sec li::before {
  content: ''; position: absolute; left: 3px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--g300);
}
.lg-sec a { color: var(--blue); border-bottom: 1px solid rgba(26,86,219,.3); transition: var(--transition); }
.lg-sec a:hover { border-bottom-color: currentColor; }
.lg-sec strong, .lg-sec b { color: var(--g900); font-weight: 600; }

/* Encadré « ce qu'il faut retenir » — le résumé n'a AUCUNE valeur contractuelle et le dit. */
.lg-callout {
  border: 1px solid var(--g200); border-left: 3px solid var(--blue);
  background: var(--info-subtle); border-radius: var(--radius);
  padding: 16px 18px; margin: 0 0 22px;
}
.lg-callout p { margin-bottom: 8px; font-size: 15px; color: var(--g700); }
.lg-callout p:last-child { margin-bottom: 0; }
.lg-callout.warn { border-left-color: var(--warning); background: var(--warning-subtle); }

/* Carte d'identité du vendeur — reprise à l'identique du reçu émis (`order-birth.ts`). */
.lg-ident {
  border: 1px solid var(--g200); border-radius: var(--radius-lg); background: var(--white);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.lg-ident dl { display: grid; gap: 10px 20px; }
@media (min-width: 640px) { .lg-ident dl { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); } }
.lg-ident dt { font-size: 13px; font-weight: 600; color: var(--g500); }
.lg-ident dd { font-size: 15px; color: var(--g800); margin: 0 0 6px; }
@media (min-width: 640px) { .lg-ident dd { margin-bottom: 0; } }

/* Tableaux (offres → règle de remboursement, sous-traitants → rôle). `min-w-0` équivalent :
   le conteneur défile SEUL, la page ne part jamais en travers sur téléphone. */
.lg-tablewrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--g200); border-radius: var(--radius); }
.lg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.lg-table th, .lg-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--g200); }
.lg-table thead th {
  background: var(--g50); font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--g600);
}
.lg-table tbody tr:last-child th, .lg-table tbody tr:last-child td { border-bottom: 0; }
.lg-table tbody th { font-weight: 600; color: var(--g900); white-space: nowrap; }
.lg-table td { color: var(--g700); line-height: 1.6; }

.lg-updated { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--g200); font-size: 14px; color: var(--g500); }

@media print {
  .site-header, .site-footer, .lg-toc, .skip-link { display: none !important; }
  .lg-hero { background: none; padding: 0 0 18px; }
  .lg-body { padding: 18px 0 0; }
  .lg-sec { break-inside: avoid; }
  .lg-sec a { color: inherit; border: 0; }
}
