/* ==========================================================================
   Pages légales : mentions légales, CGV, politique de confidentialité.
   Complète css/site.css (variables, cartouche .pg, .ix, .pager, .lbl, .lead) sans rien y redéfinir.
   Échelle : les 4 tailles du site (12 / 17 / 32 / affichage). Filets de 1 px, zéro ombre ; rayon 16 px / pilule (langage de forme, site.css).
   ========================================================================== */

/* Titre long d'un seul mot (« confidentialité ») : même corps que le site en desktop,
   48 px en mobile pour tenir dans 390 px sans coupure. */
@media (max-width: 860px) {
  .pg-legal .pg__title--long { font-size: 48px; }
}

/* ---------- sommaire : liste-index compacte, numéro + titre + flèche ---------- */
.ix--toc li { padding: 14px 0 16px; }
.ix--toc .ix__t { grid-column: 4 / 12; font-weight: 500; }
.ix--toc .ix__n { color: var(--ink-2); }

/* ---------- articles (seules les CGV gardent « Article 1 », référence contractuelle) ---------- */
.art { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 20px;
  padding: clamp(40px, 5vw, 64px) var(--m) clamp(44px, 5.5vw, 80px); border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--hd) + 24px); }
.art.dark { border-top-color: var(--ink); }
.art.dark + .art { border-top-color: transparent; }
.art__n { grid-column: 1 / 4; color: var(--green-2); padding-top: .9em; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.dark .art__n { color: rgba(249, 246, 242, .82); }
.art__h { grid-column: 4 / 11; }
.art__body { grid-column: 4 / 9; display: grid; gap: 1em; }
.art__body--wide { grid-column: 4 / 11; }
.dark .art__body p { color: rgba(249, 246, 242, .82); }
.art__aside { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); align-self: start; padding-top: .4em; }
.art__aside span:first-child { color: var(--green-2); }
.art__aside a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.art__aside a:hover { border-bottom-color: currentColor; }
.dark .art__aside { color: rgba(249, 246, 242, .82); }
.dark .art__aside span:first-child { color: var(--paper); }
.dark .art__aside a { border-bottom-color: var(--rule-dk); }
.art__body a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: border-color var(--t-fast) var(--ease); }
.art__body a:hover { border-bottom-color: currentColor; }
.dark .art__body a { border-bottom-color: var(--rule-dk); }
.art__body .lbl { color: var(--ink-2); }
.dark .art__body .lbl { color: rgba(249, 246, 242, .62); }
.art__body p + .art__list, .art__body .art__list + p { margin-top: 4px; }

/* ---------- listes à filet (un trait orange à gauche, pas de puce) ---------- */
.art__list li { position: relative; padding: 9px 0 10px 24px; border-top: 1px solid var(--rule); }
.art__list li:last-child { border-bottom: 1px solid var(--rule); }
.art__list li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 12px; height: 1px; background: var(--green-2); }
.dark .art__list li { border-color: var(--rule-dk); }
.dark .art__list li::before { background: var(--spark); }
.art__list li .lbl { display: block; margin-top: 4px; }

/* ---------- fiche clé / valeur (éditeur, hébergeur) ---------- */
.fiche { grid-column: 4 / 12; }
.fiche > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--g); padding: 10px 0 11px; border-top: 1px solid var(--rule); }
.fiche > div:last-child { border-bottom: 1px solid var(--rule); }
.fiche dt { font-family: var(--f-text); font-size: var(--t-label); line-height: 1.5; letter-spacing: .02em; color: var(--ink-2); padding-top: .35em; }
.fiche dd { margin: 0; }
.fiche dd a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.fiche dd a:hover { border-bottom-color: currentColor; }
.dark .fiche > div { border-color: var(--rule-dk); }
.dark .fiche dt { color: rgba(249, 246, 242, .62); }
.dark .fiche dd a { border-bottom-color: var(--rule-dk); }

/* ---------- tableaux (finalités, cookies) ---------- */
/* table-layout: fixed + <colgroup> : Chromium ignore les largeurs calc(% + px) sur les cellules, on fixe donc les colonnes. */
.tab { grid-column: 1 / 13; width: 100%; border-collapse: collapse; margin-top: 8px; table-layout: fixed; }
.tab caption { text-align: left; padding-bottom: 14px; color: var(--ink-2); }
.tab th, .tab td { text-align: left; vertical-align: top; padding: 16px 20px 18px 0; border-top: 1px solid var(--rule); font-weight: 400; }
.tab thead th { padding: 0 20px 10px 0; border-top: 0; color: var(--ink-2); }
.tab tbody tr:last-child th, .tab tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.tab tbody th { font-weight: 600; width: 25%; }
.tab td:last-child { padding-right: 0; }
.tab .tab__k { width: calc(25% + 4px); color: var(--green-2); }
.tab .tab__m { color: var(--ink-2); }
.tab td code { font-family: var(--f-text); font-size: var(--t-label); letter-spacing: .02em; background: var(--paper-2); padding: 2px 9px; border-radius: var(--r-pill); }
.alt .tab td code { background: var(--paper); }
.dark .tab th, .dark .tab td { border-color: var(--rule-dk); }
.dark .tab caption, .dark .tab thead th, .dark .tab .tab__m { color: rgba(249, 246, 242, .62); }
.dark .tab .tab__k { color: var(--paper); }
.dark .tab td code { background: rgba(249, 246, 242, .1); }
.tab__note { grid-column: 4 / 11; color: var(--ink-2); }
.dark .tab__note { color: rgba(249, 246, 242, .62); }
.tab__note a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.tab__note a:hover { border-bottom-color: currentColor; }

/* ---------- lien « gérer mes cookies » : lien texte, pas un second bouton plein ---------- */
/* même dessin que .btn--ghost (B10) : pilule papier, filet et texte vert clair */
.cc-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-text); font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--green-2); border-radius: var(--r-pill); padding: 14px 24px; color: var(--green-2); background: var(--paper); transition: background-color .32s var(--ease), color .32s var(--ease); }
.cc-link:hover { background: var(--green-2); color: var(--paper); }
.dark .cc-link { border-color: var(--paper); color: var(--green); }
.dark .cc-link:hover { background: var(--green-2); border-color: var(--green-2); color: var(--paper); }

/* ---------- pagination entre les trois pages légales ---------- */
.pager--legal { padding-top: clamp(48px, 6vw, 80px); }

/* ---------- tablette ---------- */
@media (max-width: 1100px) {
  .art__body { grid-column: 4 / 10; }
  .art__aside { grid-column: 10 / 13; }
}

/* ---------- mobile : une colonne, labels au-dessus, tableaux en fiches ---------- */
@media (max-width: 860px) {
  .art { display: block; padding: 40px var(--m) 48px; }
  .art__n { margin-bottom: 12px; padding-top: 0; }
  .art__h { margin-bottom: 18px; }
  .art__body + .art__aside { margin-top: 24px; }
  .fiche > div { display: block; padding: 10px 0 12px; }
  .fiche dt { padding-top: 0; margin-bottom: 2px; }
  .tab, .tab tbody, .tab tr, .tab th, .tab td { display: block; }
  .tab thead { display: none; }
  .tab caption { display: block; }
  .tab tbody tr { padding: 14px 0 16px; border-top: 1px solid var(--rule); }
  .tab tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .tab th, .tab td, .tab tbody th, .tab .tab__k { border: 0; padding: 0; width: auto; }
  .tab td + td, .tab th + td { margin-top: 10px; }
  .tab tbody tr:last-child th, .tab tbody tr:last-child td { border: 0; }
  .tab td::before { content: attr(data-th); display: block; font-family: var(--f-text); font-size: var(--t-label); letter-spacing: .02em; color: var(--ink-2); margin-bottom: 2px; }
  .tab__note { margin-top: 20px; }
  .ix--toc li { padding: 12px 0 14px; }
  .ix--toc .ix__t { margin-bottom: 0; }
}
