/* =====================================================================
   MAISON SÉQUANE · PAGES LÉGALES
   ---------------------------------------------------------------------
   Mentions légales et politique de confidentialité, en univers Maison :
   une colonne de lecture d'environ 72 caractères, des parties séparées
   par un filet, la fiche de l'éditeur en deux colonnes (une seule sur
   téléphone) et, pour la confidentialité, une carte par formulaire.
   Les pages sont écrites par build_tools/pages_legales.py. Le fil
   d'Ariane vient de guides.css. Aucune ombre, aucun dégradé.
   ===================================================================== */

.legal { padding-top: 96px; }       /* hauteur de l'en-tête fixe */
.legal-article { display: grid; gap: var(--espace-4); }
/* Le sommaire des guides (guides.css, guides.js) : collant à gauche sur grand écran, replié sur téléphone. */
.legal-corps { display: grid; gap: var(--espace-4); min-width: 0; }
@media (min-width: 1100px) { .legal-grille > .legal-corps { grid-column: 2; grid-row: 1 / span 2; } }

/* ── Haut de page ────────────────────────────────────────────────── */
.legal-haut { display: grid; gap: var(--espace-2); justify-items: start; padding-top: var(--espace-3); }
.legal-haut__titre { margin-top: var(--espace-1); color: var(--titre); text-wrap: balance; }
.legal-haut__chapo { max-width: 46ch; text-wrap: pretty; }
.legal-haut__meta { font-size: var(--taille-petit); line-height: 1.5; color: var(--texte-doux); font-variant-numeric: tabular-nums; }

/* ── Les parties ─────────────────────────────────────────────────── */
.legal-partie {
  display: grid;
  gap: var(--espace-2);
  max-width: 72ch;
  padding-top: var(--espace-3);
  border-top: 1px solid var(--filet-couleur);
}
.legal-corps > .legal-partie:first-child { padding-top: 0; border-top: 0; }
.legal-partie--large { max-width: none; }
.legal-partie h2 { scroll-margin-top: 120px; font-family: var(--police-serif); font-weight: 600; font-size: var(--taille-titre-3); line-height: 1.2; color: var(--titre); text-wrap: balance; }
.legal-partie p, .legal-partie li, .legal-partie dd { font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.legal-partie a:not(.lien-fleche) { color: var(--titre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-partie a:not(.lien-fleche):hover { text-decoration-thickness: 2px; }
.legal-partie .lien-fleche { color: var(--titre); }
.legal-partie strong { font-weight: 600; color: var(--ms-encre); }
.legal-partie dd { margin: 0; }        /* pas le retrait de 40 px du navigateur */

/* Listes : la billette d'or du drapeau comtois, comme dans les guides. */
.legal-liste { display: grid; gap: 10px; list-style: none; }
.legal-liste li { position: relative; padding-left: 22px; }
.legal-liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 11px;
  background: var(--ms-or-comtois);
}

/* ── La fiche de l'éditeur ───────────────────────────────────────── */
.legal-fiche {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  border-top: 1px solid var(--filet-couleur);
}
.legal-fiche > div { display: contents; }
.legal-fiche dt, .legal-fiche dd { padding-block: 12px; border-bottom: 1px solid var(--filet-couleur); }
.legal-fiche dt { font-size: var(--taille-petit); font-weight: 600; line-height: 1.6; color: var(--texte-doux); padding-top: 14px; }
.legal-fiche dd { padding-left: var(--espace-2); font-variant-numeric: tabular-nums; }

/* Une information obligatoire pas encore fournie : bien visible. */
.a-completer {
  display: inline-block;
  padding: 2px 10px;
  border: 1px dashed var(--etat-erreur);
  border-radius: var(--angle-controle);
  color: var(--etat-erreur);
  font-size: var(--taille-petit);
  font-weight: 600;
  line-height: 1.6;
}

/* ── Confidentialité : une carte par formulaire ──────────────────── */
.legal-traitements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--espace-2);
  margin-top: var(--espace-1);
  list-style: none;
}
.legal-traitement {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: var(--espace-3);
  border: 1px solid var(--ms-calcaire);
  border-radius: var(--angle-carte);
  background: var(--ms-creme-clair);
}
.legal-traitement__titre { font-family: var(--police-serif); font-weight: 600; font-size: 1.375rem; line-height: 1.25; color: var(--titre); text-wrap: balance; }
.legal-partie .legal-traitement__ou { font-size: var(--taille-petit); line-height: 1.5; color: var(--texte-doux); }
.legal-traitement__fiche { display: grid; gap: 12px; margin-top: 10px; }
.legal-traitement__fiche div { display: grid; gap: 2px; }
.legal-traitement__fiche dt { font-size: var(--taille-petit); font-weight: 600; line-height: 1.5; color: var(--texte-doux); }
.legal-partie .legal-traitement__fiche dd { font-size: 1rem; line-height: 1.6; }

/* ── Écrans moyens et petits ─────────────────────────────────────── */
@media (max-width: 899px) {
  .legal-traitements { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .legal-fiche { grid-template-columns: 1fr; }
  .legal-fiche dt { padding-bottom: 0; border-bottom: 0; }
  .legal-fiche dd { padding-top: 2px; padding-left: 0; }
  .legal-traitement { padding: var(--espace-2) 20px 20px; }
}
