/* =====================================================================
   MENTIONS LÉGALES : style propre à la page (chargé après styles.css)
   Une rangée par sujet, séparée par un filet d'un bord à l'autre du cadre : le titre à gauche, le texte à droite
   (l'un sous l'autre sur petit écran). Aucun filet vertical dans les rangées, donc rien à décaler.
   Le texte est en minuscules : de longs paragraphes en capitales sont pénibles à lire.
   ===================================================================== */
html { scroll-padding-top: calc(var(--hdr) + 16px); }
/* les filets des côtés vont toujours jusqu'au trait du bas : page courte (404) comme fin de page (flow-root : aucune
   marge du contenu ne peut sortir du cadre et les arrêter avant) */
.frame { min-height: 100vh; min-height: 100dvh; display: flow-root; }
.legal { max-width: none; padding: 0; }
.legal:focus { outline: 0; }   /* cible de « Aller au contenu » : pas de cadre autour de toute la page */
.legal__head, .legal__row { padding: clamp(32px, 4.5vw, 64px) clamp(24px, 5vw, 80px); }
.legal__row { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 4vw, 72px); }
.legal h1 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 52px); }
.legal h2 { margin: 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.4; letter-spacing: var(--ls-title); }
.legal h3 { margin: 32px 0 8px; font-size: 17px; line-height: 1.4; font-weight: 500; color: var(--text); }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li, .legal dt, .legal dd {
  font-size: 16px; line-height: 1.7; letter-spacing: 0.01em; font-weight: 400; text-transform: none; color: var(--soft);
}
.legal p { margin: 0 0 14px; }
.legal__body { max-width: 70ch; }
.legal__body > :last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 14px; padding-left: 1.2em; }
.legal li { margin: 0 0 6px; }
.legal li::marker { color: var(--accent); }
.legal strong { font-weight: 500; color: var(--text); }
.legal__body a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--accent); overflow-wrap: anywhere; }
.legal__body a:hover { color: var(--accent); }

/* fiches d'identité : les deux éditeurs l'un à côté de l'autre */
.legal__ids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 32px 40px; margin: 28px 0; }
.legal dl { margin: 0 0 14px; }
.legal dt { font-size: 13px; color: var(--muted); }
.legal dd { margin: 0 0 12px; color: var(--text); overflow-wrap: anywhere; }

.legal .legal__end { margin: 0; border-top: 1px solid var(--line); padding: 28px clamp(24px, 5vw, 80px); }
.legal__end a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.legal__end a:hover { color: var(--accent); }

@media (max-width: 899px) {
  .legal__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
/* téléphone : styles.css masque « Retour au site » ; ici c'est le seul lien de retour en haut de page */
@media (max-width: 640px) {
  .topbar .cta-top { display: flex; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body, .frame, .legal { background: #fff; }
  .topbar, .legal__end, .skip, body::after { display: none; }
  .legal h1, .legal h2, .legal h3, .legal p, .legal li, .legal dt, .legal dd, .legal strong, .legal__body a { color: #000; }
  .frame { border: 0; }
  .legal__row { border-color: #999; break-inside: avoid; }
}
