/* ════════════════════════════════════════════════════════════════════
   Les pages légales (mentions, confidentialité, conditions), dans les
   pages publiques depuis le 06/11. Le socle commun (jetons, barre, pied)
   est dans vitrine.css. Sans mode sombre. Lato n'est chargée qu'en 300 et
   400 : ce qui s'écrit gras s'écrit en Titillium (600), jamais en faux gras.
   ════════════════════════════════════════════════════════════════════ */
body.page-legale { display: flex; background: var(--fond-alt); }
.page-legale main { display: block; padding: 40px 0 64px; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

.legal {
  max-width: 820px; margin: 0 auto; background: var(--fond);
  border: .8px solid var(--filet); border-radius: var(--rayon-bloc);
  padding: 36px clamp(20px, 5vw, 52px) 44px;
}
.legal h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.35rem); letter-spacing: -.01em; text-wrap: balance; }
.legal .version { margin-top: 10px; color: var(--encre-3); font-size: .92rem; }
.legal .traduction { margin-top: 2px; color: var(--encre-3); font-size: .92rem; }
.legal section { margin-top: 30px; }
.legal h2, .legal h3 { font-family: var(--police-titre); line-height: 1.2; text-wrap: balance; margin: 0; }
.legal h2 { font-size: 1.32rem; font-weight: 700; }
.legal h3 { font-size: 1.06rem; font-weight: 600; margin-top: 20px; }
.legal p, .legal li, .legal dd { max-width: 70ch; line-height: 1.62; }
.legal p { margin-top: 10px; }
.legal ul, .legal ol { margin: 10px 0 0; padding-left: 22px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--action); text-underline-offset: 2px; }

/* 24/11 : chaque article est un texte de lecture de la plateforme
   (paragraphes, puces, intertitres, tableaux, gras). Le gras s'écrit en
   Titillium : Lato n'a pas de graisse grasse chargée. */
.legal .lecture { margin-top: 10px; }
.legal .lecture:empty { display: none; }
.legal strong { font-family: var(--police-titre); font-weight: 600; }
.legal .lecture h4 { font-size: 1rem; font-weight: 600; margin: 18px 0 0; }
.legal section > h3:first-child { margin-top: 0; }
/* Les deux parties des CGV-CGU. */
.legal h2.partie { margin-top: 40px; padding-top: 18px; border-top: .8px solid var(--filet); font-size: 1.4rem; }

/* Les tableaux (finalités, grille des abonnements). */
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: .8px solid var(--filet); line-height: 1.5; }
.legal th { font-family: var(--police-titre); font-weight: 600; font-size: .86rem; color: var(--encre-2); border-bottom-color: var(--case-c); }
.legal td:first-child { color: var(--encre); }
.legal td + td, .legal th + th { padding-left: 12px; }

/* Une information de la console encore vide : visible, jamais inventée. */
.a-completer { background: #fff3c4; border-radius: 3px; padding: 0 1px; color: var(--encre); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Écran étroit : chaque ligne d'un tableau devient une carte, chaque
   cellule précédée du nom de sa colonne. */
@media (max-width: 640px) {
  .page-legale main { padding: 16px 0 40px; }
  .legal { padding: 24px 18px 30px; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal tr { padding: 12px 0; border-bottom: .8px solid var(--filet); }
  .legal td { border: 0; padding: 2px 0; }
  .legal td + td { padding-left: 0; margin-top: 6px; }
  .legal td::before { content: attr(data-etiquette); display: block; font-family: var(--police-titre); font-weight: 600; font-size: .8rem; color: var(--encre-3); }
  .legal td:first-child::before { display: none; }
  .legal td:first-child { font-family: var(--police-titre); font-weight: 600; }
}
@media (max-width: 400px) { .barre .cadre { flex-wrap: wrap; } }
