/* Pages légales (mentions-legales, cgu, confidentialite).
   Mêmes tokens que l'accueil, limités à ce que ces pages utilisent. */
:root {
  --ink: #000;
  --paper: #fff;
  --body: #5e5e5e;
  --mute: #afafaf;
  --soft: #efefef;
  --softer: #f3f3f3;
  --line: #e2e2e2;
  --line-dark: #2a2a2a;
  --hl: #ffe14d;
  --r-lg: 12px;
  --pill: 999px;
  --display: "Inter Tight", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gut: 32px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 16px/24px var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.nav a { text-decoration: none; }
.logo { font: 700 22px/1 var(--display); }
.logo em { font-style: normal; color: var(--mute); font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/20px var(--text); color: var(--mute); transition: color .2s; }
.back:hover { color: var(--paper); }

/* Article */
.legal { padding: 56px 0 96px; }
.legal__in { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.legal__date { margin-top: 12px; font-size: 14px; color: var(--body); }
.legal__lead { margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--body); }
.legal h2 { margin-top: 48px; font-size: 24px; line-height: 30px; }
.legal h3 { margin-top: 24px; font-size: 17px; line-height: 24px; }
.legal p, .legal ul { margin-top: 12px; color: var(--body); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }

/* Fiche d'identité (libellé / valeur) */
.fiche { margin-top: 16px; border-top: 1px solid var(--line); }
.fiche div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fiche dt { font-weight: 500; color: var(--ink); }
.fiche dd { color: var(--body); }

/* Tableau de traitements */
.tablewrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; min-width: 640px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--softer); font-weight: 600; color: var(--ink); }
.legal tr:last-child td { border-bottom: 0; }
.legal td { color: var(--body); }

/* Informations à compléter : jaune, impossible à rater. Convention de l'éditeur
   (kit éditeur, MARQUE_A_COMPLETER) : cliquable, perd ce style dès qu'on la remplit. */
.a-completer { display: inline-block; padding: 2px 8px; border: 1px dashed var(--ink); border-radius: 4px; background: var(--hl); font: 500 12px/1.6 var(--text); letter-spacing: .04em; color: var(--ink); }
.a-completer + em { display: block; margin-top: 6px; font-size: 13px; font-style: italic; color: var(--body); }
td .a-completer, li .a-completer { font-size: 12px; }

/* Pied de page */
.foot { background: var(--ink); color: var(--mute); border-top: 1px solid var(--line-dark); padding: 40px 0; font-size: 14px; line-height: 20px; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .logo { color: var(--paper); font-size: 18px; text-decoration: none; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--paper); }

@media (max-width: 767px) {
  :root { --gut: 20px; }
  .legal { padding: 40px 0 72px; }
  .fiche div { grid-template-columns: 1fr; gap: 4px; }
}
