/* =========================================================
   ExoTeach — pages légales (prose)
   Utilisé par /privacy/ et /cgu/. Repose sur le design system
   de styles.css (variables CSS, polices). À charger APRÈS styles.css.
   ========================================================= */

/* ---------- En-tête sombre ---------- */
.legal-hero { padding: clamp(120px, 16vw, 200px) 0 clamp(48px, 7vw, 90px); }
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-top: 22px;
}
.legal-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-updated {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dark-soft);
}

/* ---------- Corps clair (prose) ---------- */
.legal-section { padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 12vw, 150px); }
.legal {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-light-muted);
  font-size: 16px;
  line-height: 1.72;
}
.legal > .legal-intro {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Partie / grande section (PARTIE 1…, ou « 1. Éditeur » sur /privacy) */
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-light);
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}
.legal h2:first-of-type { margin-top: 40px; }

/* Article numéroté (CGU : « 1. CHAMP D'APPLICATION ») */
.legal h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text-light);
  margin: 40px 0 14px;
}

/* Sous-section (CGU : « A. Accès aux Services ») */
.legal h4 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light-soft);
  margin: 28px 0 12px;
}

.legal p { margin: 0 0 16px; }
.legal p:last-child { margin-bottom: 0; }

/* Numéro de clause (CGU : 1.1, 3.2…) */
.legal .cl {
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--indigo);
  margin-right: 8px;
  white-space: nowrap;
}

/* Listes à puces */
.legal ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal li {
  position: relative;
  padding-left: 22px;
}
.legal li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
/* Sous-liste imbriquée */
.legal li > ul {
  margin: 10px 0 2px;
}
.legal li > ul > li::before {
  background: var(--border-light-hi);
}

/* Liste de définitions (CGU : article 2) */
.legal dl {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal dt {
  font-weight: 600;
  color: var(--text-light);
}
.legal dd {
  margin: 4px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--border-light);
}

.legal strong { color: var(--text-light); font-weight: 600; }
.legal a {
  color: var(--indigo);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal a:hover { color: var(--violet); }

/* ---------- Encart d'avertissement (ex. données de santé) ---------- */
.legal-callout {
  margin: 8px 0 12px;
  padding: 24px 26px;
  border: 1px solid var(--border-light-hi);
  border-left: 3px solid var(--icon-green);
  border-radius: var(--radius);
  background: oklch(0.7 0.15 145 / 0.06);
}
.legal-callout .legal-callout-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.legal-callout .legal-callout-title svg {
  width: 20px; height: 20px;
  color: var(--icon-green);
  stroke-width: 2;
}
.legal-callout p:last-child,
.legal-callout ul:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .legal { font-size: 15.5px; }
  .legal-callout { padding: 20px; }
}
