/* ═══════════════════════════════════════════
   PAGES LÉGALES — terms.html, privacy.html
   Par-dessus landing.css : même ciel, même en-tête, même pied de page
═══════════════════════════════════════════ */
[hidden] { display: none !important; }

/* ── La Lune dans le coin, qui tourne doucement au défilement (js/legal.js) ── */
#moon {
  left: auto; right: -9vh; top: -8vh; width: 48vh; height: 48vh;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
body.ready #moon { opacity: .32; transition: opacity 1.4s var(--ease); }

.anchors a[aria-current="true"] { color: var(--gold); }

/* ── Contenu ── */
.legal { width: min(860px, 100% - 2 * var(--gutter)); margin: 0 auto; padding-top: 150px; }

.legal-hero > * { animation: rise .9s var(--ease) both; }
.legal-hero > :nth-child(2) { animation-delay: .08s; }
.legal-hero > :nth-child(3) { animation-delay: .16s; }
.legal-hero > :nth-child(4) { animation-delay: .22s; }
.legal-hero > :nth-child(5) { animation-delay: .3s; }
.legal-hero h1 {
  margin-top: 18px; font-size: clamp(2.8rem, 7.4vw, 5.8rem); font-weight: 700; line-height: 1;
  text-shadow: 0 6px 50px rgba(0, 0, 0, .55); text-wrap: balance;
}
.legal-hero .rule { transform-origin: left; animation: rule-in 1.1s var(--ease) .2s both; }
@keyframes rule-in { from { transform: scaleX(0); } }
.updated { margin-top: 18px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--cream-faint); }

/* sommaire : une puce par section */
.toc { margin-top: 34px; }
.toc .chip small { margin-right: 2px; }

/* ── Une carte par section ── */
.legal-card {
  position: relative; margin-top: 18px; padding: 34px 36px 32px;
  border-radius: 22px; border: 1px solid rgba(232, 201, 122, .14);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  backdrop-filter: blur(6px);
  transition: border-color .35s, box-shadow .35s, opacity .9s var(--ease), transform .9s var(--ease);
}
.legal-hero + .legal-card { margin-top: 64px; }
.legal-card:hover { border-color: rgba(232, 201, 122, .36); box-shadow: 0 24px 60px -30px rgba(232, 201, 122, .25); }
.legal-card .num {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; color: rgba(232, 201, 122, .55);
}
.legal-card h2 { padding-right: 48px; font-size: clamp(1.45rem, 3vw, 1.9rem); font-style: italic; font-weight: 700; }
.legal-card p, .legal-card li { font-family: var(--sans); font-size: 1rem; line-height: 1.72; color: var(--cream-dim); }
.legal-card h2 + p, .legal-card h2 + ul { margin-top: 14px; }
.legal-card p + p { margin-top: 10px; }
.legal-card ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.legal-card li { position: relative; padding-left: 22px; }
.legal-card li::before {
  content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4dc, #b9ad95 60%, #6f6656);
}
.legal-card a { color: var(--gold); text-underline-offset: 3px; }
.legal-card strong { color: var(--cream); font-weight: 600; }
.legal-card code { font-family: var(--mono); font-size: .86em; color: var(--cream); padding: .1em .4em; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.legal-card .callout {
  margin-top: 14px; padding: 14px 18px; border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0;
  background: rgba(232, 201, 122, .06); color: var(--cream); font-size: 1.06rem;
}

/* le grand mot du pied de page : le nom de la page */
.f-word-long { font-size: clamp(2.6rem, 8vw, 7.4rem); line-height: 1.12; text-wrap: balance; max-width: 1180px; }

@media (max-width: 760px) {
  .legal { padding-top: 110px; }
  .legal-card { padding: 26px 20px 24px; border-radius: 18px; }
  .legal-card .num { top: 20px; right: 20px; }
  #moon { width: 34vh; height: 34vh; right: -10vh; top: -4vh; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-hero > *, .legal-hero .rule { animation: none; }
}
