/* ==========================================================================
   Morgana Salem — Cartomancie & Arts Ésotériques
   Feuille de style partagée — toutes les pages
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — thème clair (parchemin) par défaut */
  --ink-950: #14101f;
  --ink-900: #1c1730;
  --ink-800: #272044;
  --ink-700: #352b56;
  --violet-grey-300: #d8d2e6;
  --violet-grey-500: #8b82a3;
  --violet-grey-700: #574d70;

  --parchment-50: #faf6ec;
  --parchment-100: #f3ecda;
  --parchment-200: #e9dfc3;

  --brass-300: #e3c179;
  --brass-400: #cda355;
  --brass-500: #b08a3e;
  --brass-600: #8f6d2c;

  --garnet-500: #7c2f3c;
  --garnet-600: #5e2230;

  --ok-600: #3f6b4a;
  --err-600: #a5333f;

  /* Rôles — thème clair */
  --bg: var(--parchment-50);
  --bg-raised: #ffffff;
  --bg-sunken: var(--parchment-100);
  --text: #251f38;
  --text-muted: #5b5270;
  --border: var(--parchment-200);
  --border-strong: var(--brass-500);
  --accent: var(--brass-600);
  --accent-contrast: #ffffff;
  --accent-2: var(--garnet-500);
  --link: var(--garnet-600);
  --focus-ring: #2b6cb0;
  --overlay: rgba(20, 16, 31, 0.55);
  --shadow: 0 8px 30px rgba(37, 31, 56, 0.12);

  color-scheme: light;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Jost', 'Century Gothic', Futura, sans-serif;

  --container: 1100px;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink-950);
    --bg-raised: var(--ink-900);
    --bg-sunken: var(--ink-800);
    --text: var(--parchment-100);
    --text-muted: var(--violet-grey-300);
    --border: var(--ink-700);
    --border-strong: var(--brass-400);
    --accent: var(--brass-300);
    --accent-contrast: #221704;
    --accent-2: #d98496;
    --link: var(--brass-300);
    --focus-ring: #9ecbff;
    --overlay: rgba(8, 6, 14, 0.7);
    --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: var(--ink-950);
  --bg-raised: var(--ink-900);
  --bg-sunken: var(--ink-800);
  --text: var(--parchment-100);
  --text-muted: var(--violet-grey-300);
  --border: var(--ink-700);
  --border-strong: var(--brass-400);
  --accent: var(--brass-300);
  --accent-contrast: #221704;
  --accent-2: #d98496;
  --link: var(--brass-300);
  --focus-ring: #9ecbff;
  --overlay: rgba(8, 6, 14, 0.7);
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding-inline: 20px;
  overflow-x: hidden;
}
main { display: block; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 0.5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + 1rem, 1.5rem); }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--link); }
a:not(.btn) { text-underline-offset: 3px; }
ul, ol { padding-left: 1.2em; }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: var(--accent-contrast);
  padding: 10px 16px; border-radius: var(--radius-s);
  font-family: var(--font-body); font-weight: 500;
  z-index: 200; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--container); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--border-strong);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   3. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-text small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-s);
  width: 42px; height: 42px; color: var(--text); cursor: pointer;
}
.nav-toggle svg { margin: auto; }

.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none; color: var(--text); font-size: 0.95rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 999px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 70px; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--bg-raised); border-left: 1px solid var(--border);
    padding: 24px; transform: translateX(100%); transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav[data-open="true"] { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 8px; }
}

/* --------------------------------------------------------------------------
   4. Buttons & form controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; min-height: 38px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 12px 14px; min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 16px; margin: 0 0 18px; }
legend { font-weight: 600; padding: 0 8px; font-family: var(--font-display); font-size: 1.1rem; }
.radio-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-radius: var(--radius-s); }
.radio-row:hover { background: var(--bg-sunken); }
.radio-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.radio-row label { font-weight: 400; margin: 0; }
.radio-row .price { font-weight: 600; color: var(--accent); }

.form-status { padding: 12px 16px; border-radius: var(--radius-s); margin-top: 14px; font-size: 0.92rem; display: none; }
.form-status[data-state="ok"] { display: block; background: color-mix(in srgb, var(--ok-600) 14%, transparent); border: 1px solid var(--ok-600); }
.form-status[data-state="error"] { display: block; background: color-mix(in srgb, var(--err-600) 14%, transparent); border: 1px solid var(--err-600); }

/* --------------------------------------------------------------------------
   5. Layout building blocks
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); }

.hero { padding-block: clamp(56px, 10vw, 108px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy p.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border); background: var(--bg-sunken); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.card .glyph { width: 44px; height: 44px; color: var(--accent); }

.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .value-row { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 14px; }
.value-item .glyph { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.divider {
  display: flex; align-items: center; gap: 16px; color: var(--border-strong);
  margin-block: 8px 32px;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }

.disclaimer {
  background: var(--bg-sunken); border: 1px solid var(--border); border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-s); padding: 16px 20px; font-size: 0.9rem; color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Pricing cards
   -------------------------------------------------------------------------- */
.price-card { position: relative; }
.price-card .glyph-mark { width: 46px; height: 46px; color: var(--accent); }
.price-card .price {
  font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); margin: 4px 0 0;
}
.price-card .price .unit { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.price-card .duration { font-size: 0.85rem; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.price-card li { display: flex; gap: 8px; }
.price-card li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.price-card.featured { border-color: var(--border-strong); box-shadow: var(--shadow); }
.price-card .tag {
  position: absolute; top: -12px; right: 24px; background: var(--accent); color: var(--accent-contrast);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}

/* --------------------------------------------------------------------------
   7. Calendar & booking
   -------------------------------------------------------------------------- */
.booking-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }

.calendar { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 22px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.calendar-head strong { font-family: var(--font-display); font-size: 1.2rem; }
.cal-nav-btn { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; padding-bottom: 6px; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: var(--radius-s);
  background: none; font: inherit; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.cal-day:disabled { color: var(--text-muted); opacity: 0.35; cursor: default; }
.cal-day[data-available="true"] { border-color: var(--border); }
.cal-day[data-available="true"]:hover { border-color: var(--border-strong); background: var(--bg-sunken); }
.cal-day[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--border); display: inline-block; }
.cal-legend i.avail { border-color: var(--border-strong); }
.cal-legend i.sel { background: var(--accent); border-color: var(--accent); }

.slot-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.slot-btn {
  border: 1px solid var(--border); background: var(--bg-raised); color: var(--text);
  padding: 9px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.88rem;
  min-height: 40px;
}
.slot-btn:hover { border-color: var(--border-strong); }
.slot-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); font-weight: 600; }
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.booking-summary {
  background: var(--bg-sunken); border: 1px dashed var(--border-strong); border-radius: var(--radius-m);
  padding: 16px 18px; font-size: 0.9rem; margin-top: 18px;
}
.booking-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.booking-summary dt { color: var(--text-muted); }
.booking-summary dd { margin: 0; font-weight: 500; }

.payment-block { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); }
.stacked-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* --------------------------------------------------------------------------
   8. Reviews
   -------------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 3px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.rating-input { display: flex; gap: 6px; }
.rating-input button { background: none; border: 1px solid var(--border); border-radius: var(--radius-s); width: 42px; height: 42px; cursor: pointer; color: var(--text-muted); }
.rating-input button[aria-pressed="true"], .rating-input button.lit { color: var(--accent); border-color: var(--accent); }
.rating-input button svg { width: 20px; height: 20px; margin: auto; }

.review-empty {
  text-align: center; padding: 48px 24px; border: 1px dashed var(--border); border-radius: var(--radius-l);
  color: var(--text-muted);
}
.review-empty .glyph { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 14px; }

.review-summary { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.review-score { text-align: center; min-width: 140px; }
.review-score-number { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--accent); }
.review-score .stars { justify-content: center; margin-top: 6px; }
.review-count { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }
.review-distribution { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 7px; }
.dist-row { display: grid; grid-template-columns: 40px 1fr 28px; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--text-muted); }
.dist-bar { height: 8px; background: var(--bg-sunken); border-radius: 999px; overflow: hidden; }
.dist-bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
@media (max-width: 640px) { .review-summary { gap: 20px; } }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer { padding-block: 48px 32px; margin-top: 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-bottom button { background: none; border: none; color: var(--text-muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* --------------------------------------------------------------------------
   10. Cookie banner & preferences dialog
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 300;
  max-width: 560px; margin-inline: auto;
  background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.modal-overlay {
  position: fixed; inset: 0; background: var(--overlay); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-l);
  max-width: 520px; width: 100%; padding: 28px; max-height: 85vh; overflow-y: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.modal-close { background: none; border: 1px solid var(--border); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; color: var(--text); flex-shrink: 0; }
.cookie-cat { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 14px 16px; margin-top: 14px; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-cat-head strong { font-size: 0.95rem; }
.cookie-cat p { font-size: 0.82rem; color: var(--text-muted); margin: 6px 0 0; }

.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background 0.15s; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-raised); box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.15s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:disabled + .track { opacity: 0.6; }
.switch input:focus-visible + .track { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   11. Misc — table (cookie policy), legal pages, utility
   -------------------------------------------------------------------------- */
.legal table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.88rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-family: var(--font-body); font-weight: 600; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.legal .table-wrap { overflow-x: auto; }
.legal h2 { margin-top: 2em; }
.legal .placeholder { background: color-mix(in srgb, var(--accent-2) 16%, transparent); padding: 0 4px; border-radius: 3px; }
.page-hero { padding-block: 48px 8px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.content-narrow { max-width: 72ch; }
.toc { background: var(--bg-sunken); border-radius: var(--radius-m); padding: 18px 22px; margin: 28px 0; }
.toc summary { cursor: pointer; font-weight: 600; }
.toc ul { margin: 12px 0 0; }
.back-to-top { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }

.a11y-note { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-sunken); border-radius: var(--radius-m); padding: 16px 18px; }
.a11y-note .glyph { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
