/* Altura — pages légales (mentions légales, CGV, confidentialité)
   Chargé après styles.css : uniquement ses variables, aucune police ni couleur nouvelle.
   Textes fournis le 03/10/2026 (legal-pages-altura.md), à relire par un avocat. */

/* ---------- Article ---------- */
.legal-page { padding: 40px 0 56px; }

/* Largeur de texte confortable : environ 70 caractères par ligne */
.legal-page__body { max-width: 70ch; }

.legal-page h1 {
  font-family: var(--font-serif);
  font-weight: 350;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: anywhere; /* aucun débordement à 320px */
}

.legal-updated {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink-label);
}

.legal-section { margin-top: 40px; }
.legal-section > * + * { margin-top: 14px; }

.legal-page h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.legal-page h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* Paragraphes et listes, prêts pour le texte du conseil juridique */
.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-strong);
}

.legal-page ul,
.legal-page ol { padding-left: 1.4em; }
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li + li { margin-top: 6px; }
.legal-page li::marker { color: var(--ink-label); }

.legal-page a { text-underline-offset: 3px; }

/* Éléments factuels à fournir ([À COMPLÉTER : …]), en bloc ou au fil du texte */
.legal-page .legal-field {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}

/* Chapeau de la politique de confidentialité */
.legal-page .legal-intro {
  margin-top: 28px;
  font-size: 17px;
  color: var(--ink);
}

/* Tableau (politique de confidentialité, article 2) : en blocs sous 700 px (voir plus bas) */
.legal-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.legal-table table {
  width: 100%;
  border-collapse: collapse;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
  color: var(--ink-strong);
}
.legal-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-label);
}
.legal-table tbody th { font-weight: 600; color: var(--ink); }
.legal-table tbody tr:last-child > * { border-bottom: 0; }

@media (max-width: 699px) {
  .legal-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); /* lu, non affiché */
  }
  .legal-table table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td { display: block; }
  .legal-table tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .legal-table tbody tr:last-child { border-bottom: 0; }
  .legal-table tbody th,
  .legal-table td { padding: 0; border-bottom: 0; }
  .legal-table td { margin-top: 10px; }
  .legal-table td::before {
    content: attr(data-label);
    content: attr(data-label) / ""; /* déjà annoncé par l'en-tête de colonne : texte alternatif vide */
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-label);
  }
}

/* Section à rédiger : bien visible, sans nouvelle couleur */
.legal-page .legal-todo {
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-strong);
}

/* Pied de page : le lien de la page en cours */
.legal .site-footer__nav a[aria-current="page"] {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .legal-page { padding: 64px 0 88px; }
  .legal-page h1 { font-size: 48px; }
  .legal-page h2 { font-size: 28px; }
  .legal-section { margin-top: 48px; }
}
