/* ==========================================================
   Santa Tracker website
   Palette derived from the app theme (lib/constants/app_theme_color.dart)
   tuned for a bright, friendly, kid-first look.
   ========================================================== */

:root {
  /* Night sky */
  --night-deep: #0b1640;
  --night: #13235b;
  --night-2: #23409a;

  /* Santa red (app primaryColor) */
  --red: #e51b24;
  --red-dark: #b30d15;
  --red-deep: #7a0909;

  /* Evergreen (app buttonGreen) */
  --green: #16a34a;
  --green-dark: #0f7a37;
  --green-soft: #e6f7ec;

  /* Gold + snow (app goldAccent / festiveCream) */
  --gold: #ffc83d;
  --gold-dark: #f59e0b;
  --snow: #fffdf8;
  --cream: #fff4e3;
  --ice: #e9f3ff;
  --candy-pink: #ffe1e3;

  /* Text */
  --ink: #1e2340;
  --ink-soft: #4b5175;

  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 14px 36px rgba(19, 35, 91, 0.14);
  --shadow-pop: 0 6px 0 rgba(0, 0, 0, 0.18);
  --wrap: 1160px;

  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px;
  border-radius: 12px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 64, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.brand span em { color: var(--gold); font-style: normal; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #dfe6ff; text-decoration: none; font-weight: 700; font-size: 0.97rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--night-deep); padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-deep); }
.btn-red:hover { color: #fff; background: #f02a33; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 #c98a07; }
.btn-gold:hover { color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: 0.95rem; box-shadow: 0 3px 0 var(--red-deep); }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 22px 10px 18px; border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.store-btn:hover { color: #fff; transform: translateY(-2px); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn small { display: block; font-size: 0.72rem; line-height: 1.1; opacity: 0.85; font-weight: 600; }
.store-btn strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(80, 120, 255, 0.35), transparent 60%),
    radial-gradient(800px 400px at 0% 20%, rgba(229, 27, 36, 0.18), transparent 60%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 55%, var(--night-2) 100%);
  padding: 56px 0 150px;
}
#snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.moon {
  position: absolute; z-index: -1; right: 6%; top: 46px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffef2, #ffe9a8 70%);
  box-shadow: 0 0 60px 20px rgba(255, 233, 168, 0.35);
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.4px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: #3ee07a; box-shadow: 0 0 0 4px rgba(62,224,122,.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(62,224,122,0); } }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}
.hero h1 .gold { color: var(--gold); }
.hero h1 .red { color: #ff5a61; }
.hero p.lead { font-size: 1.22rem; color: #dbe3ff; max-width: 34em; margin: 0 0 26px; }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { margin-top: 14px; font-size: 0.92rem; color: #b8c4f2; }

/* Countdown (mirrors the in-app "Santa arrives in" board) */
.countdown {
  margin-top: 34px; display: inline-block;
  background: var(--snow); color: var(--ink);
  border-radius: 22px; padding: 0 18px 14px; box-shadow: 0 10px 0 rgba(0,0,0,.18);
  position: relative;
}
.countdown-title {
  display: block; width: max-content; margin: -16px auto 8px;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; padding: 5px 20px; border-radius: 999px; box-shadow: 0 3px 0 var(--red-deep);
}
.countdown-units { display: flex; align-items: center; gap: 6px; }
.cd-unit { text-align: center; min-width: 64px; }
.cd-unit b { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; color: var(--red-dark); font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.cd-sep { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-soft); padding-bottom: 18px; }
.countdown.is-christmas .countdown-units { justify-content: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--green-dark); padding: 6px 10px; }

/* Phone mockups */
.phone {
  position: relative; width: 270px; aspect-ratio: 9 / 19.5;
  border-radius: 44px; padding: 0; background: transparent;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.float {
  position: absolute; width: 70px; height: 70px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
  animation: bob 5s ease-in-out infinite;
}
/* Scattered ornament cluster (positions are % of .hero-visual) */
.float.santa-emoji {
  top: 40%; left: 42%; width: auto; height: auto;
  font-size: 66px; line-height: 1; user-select: none; animation-delay: -0.8s;
}
.float.f1  { top: 4%;  right: 6%;  width: 78px; height: 78px; }
.float.f2  { bottom: 12%; right: 0; animation-delay: -1.5s; }
.float.f3  { top: 40%; left: 0;    width: 60px; height: 60px; animation-delay: -3s; }
.float.f4  { bottom: 2%; left: 18%; width: 64px; height: 64px; animation-delay: -2s; }
.float.f5  { top: 6%;  left: 20%;  width: 68px; height: 68px; animation-delay: -4s;   animation-duration: 6s; }
.float.f6  { top: 22%; left: 62%;  width: 56px; height: 56px; animation-delay: -2.5s; animation-duration: 7s; }
.float.f8  { top: 46%; right: 8%;  width: 64px; height: 64px; animation-delay: -3.5s; animation-duration: 6s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .float, .eyebrow .dot { animation: none; } }

.snow-ground { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.snow-ground svg { width: 100%; height: 120px; display: block; }

@media (max-width: 920px) {
  .hero { padding: 36px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { min-height: 440px; margin-top: 12px; }
  .moon { width: 70px; height: 70px; top: 20px; right: 4%; }
}
@media (max-width: 600px) { .moon { display: none; } }
@media (max-width: 480px) {
  .phone { width: 230px; border-radius: 38px; }
  .phone img { border-radius: 38px; }
  .hero-visual { min-height: 340px; }
  .cd-unit { min-width: 50px; }
  .cd-unit b { font-size: 1.7rem; }
  .countdown { padding: 0 12px 12px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--night); }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }
.kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  color: var(--red-dark); background: var(--candy-pink);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; font-size: 0.95rem;
}

/* Feature grid */
.feature-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.feature-grid > .feature-card { flex: 0 1 calc((100% - 48px) / 3); }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: var(--gold); }
.feature-card .icon {
  width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 16px;
}
.feature-card .icon img { width: 52px; height: 52px; }
.feature-card h3 { font-size: 1.4rem; color: var(--night); margin-bottom: 6px; }
.feature-card p { margin: 0; color: var(--ink-soft); }
.bg-red { background: var(--candy-pink); }
.bg-green { background: var(--green-soft); }
.bg-gold { background: #fff1cc; }
.bg-ice { background: var(--ice); }

@media (max-width: 900px) { .feature-grid > .feature-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .feature-grid > .feature-card { flex-basis: 100%; } }

/* Spotlight rows */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spotlight + .spotlight { margin-top: 96px; }
.spotlight.reverse .spot-media { order: 2; }
.spot-media { position: relative; }
.spot-media .scene {
  border-radius: 32px; box-shadow: var(--shadow); border: 6px solid #fff;
  transform: rotate(-2deg); max-height: 560px; width: auto; margin-inline: auto;
}
.spotlight.reverse .spot-media .scene { transform: rotate(2deg); }
.spot-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--night); }
.spot-text p { color: var(--ink-soft); font-size: 1.12rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks li::before {
  content: "✓"; flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-dark); color: #fff; font-weight: 800; font-size: 0.9rem; margin-top: 1px;
}
@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; gap: 32px; }
  .spotlight.reverse .spot-media { order: 0; }
  .spot-media .scene { max-height: 460px; }
}

/* Gift tracker timeline */
.gift-band { background: linear-gradient(180deg, var(--cream), var(--snow)); }
.gift-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step;
}
.gift-steps li {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  counter-increment: step; position: relative;
}
.gift-steps img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gift-steps .txt { padding: 14px 16px 18px; }
.gift-steps h3 { font-size: 1.12rem; color: var(--night); margin: 0 0 4px; }
.gift-steps p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.gift-steps li::before {
  content: counter(step); position: absolute; top: 10px; left: 10px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 3px 0 var(--red-deep);
}
@media (max-width: 1000px) {
  .gift-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 240px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; }
  .gift-steps li { scroll-snap-align: start; }
}

/* Games */
.games-band {
  color: #fff;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(80, 120, 255, 0.3), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}
.games-band .section-head h2 { color: #fff; }
.games-band .section-head p { color: #c7d2ff; }
.games-band .kicker { background: rgba(255, 200, 61, 0.18); color: var(--gold); }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.game-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); overflow: hidden; text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.game-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.1); }
.game-card .art { aspect-ratio: 3 / 2; display: grid; place-items: center; background: #050a24; overflow: hidden; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; }
.game-card .art.sprite img { width: auto; height: 86%; object-fit: contain; }
.game-card .txt { padding: 16px 18px 22px; }
.game-card h3 { font-size: 1.3rem; color: var(--gold); margin-bottom: 4px; }
.game-card p { margin: 0; color: #d6defc; font-size: 0.98rem; }
@media (max-width: 960px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .game-grid { grid-template-columns: 1fr; } }

.wave { display: block; width: 100%; height: 70px; }

/* Ornament strip */
.ornament-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ornament-row img {
  width: 54px; height: 54px; padding: 6px; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 12px rgba(19,35,91,.12);
  transition: transform .2s ease;
}
.ornament-row img:hover { transform: rotate(-10deg) scale(1.1); }

/* Screenshots */
.shots {
  display: flex; gap: 28px; overflow-x: auto; padding: 10px 16px 60px;
  scroll-snap-type: x mandatory; justify-content: center;
}
.shots .phone { flex: none; scroll-snap-align: center; width: 240px; }
@media (max-width: 1100px) { .shots { justify-content: flex-start; } }

/* Parents */
.parents {
  background: var(--green-dark); color: #fff; border-radius: 40px;
  padding: 56px clamp(24px, 5vw, 64px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.parents::after {
  content: ""; position: absolute; left: -50px; bottom: -70px; width: 240px; height: 240px;
  background: url("../assets/img/ornaments/28.webp") center / contain no-repeat; opacity: 0.18; transform: rotate(-15deg);
}
.parents h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.parents p { color: #e3f6ea; font-size: 1.1rem; }
.parents .kicker { background: rgba(255,255,255,.16); color: #fff; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.trust-list li {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start;
}
.trust-list .emoji { font-size: 1.6rem; line-height: 1; flex: none; margin-top: 2px; }
.trust-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.trust-list span { color: #d5f0de; font-size: 0.98rem; }
.parents a { color: var(--gold); }
@media (max-width: 860px) { .parents { grid-template-columns: 1fr; gap: 28px; border-radius: 28px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border-radius: 20px; box-shadow: 0 6px 20px rgba(19,35,91,.08);
  padding: 4px 22px; border: 2px solid transparent;
}
.faq details[open] { border-color: var(--gold); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; color: var(--night); padding: 16px 30px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--candy-pink); color: var(--red-dark);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  text-align: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
  padding: 80px 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12;
  background-image: radial-gradient(#fff 2px, transparent 2.5px);
  background-size: 34px 34px;
}
.cta-band .wrap { position: relative; }
.cta-band img.santa { width: 120px; height: 120px; border-radius: 32px; margin: 0 auto 18px; box-shadow: 0 0 0 6px rgba(255,255,255,.25); }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.cta-band p { color: #ffe2e3; font-size: 1.15rem; margin: 0 auto 26px; max-width: 32em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: #b8c4f2; padding: 48px 0 28px; font-size: 0.97rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.site-footer .brand { margin-bottom: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--night-deep), var(--night));
  color: #fff; padding: 56px 0 90px; position: relative; overflow: hidden; text-align: center;
}
.legal-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.legal-hero p { color: #c7d2ff; margin: 0; }
.legal-hero .snow-ground svg { height: 70px; }

.legal { padding: 20px 0 80px; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.toc {
  position: sticky; top: 96px; background: #fff; border-radius: 20px; padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(19,35,91,.08); font-size: 0.95rem;
}
.toc strong { font-family: var(--font-display); color: var(--night); display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--red-dark); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; color: var(--night); margin-top: 2em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.22rem; color: var(--night); margin-top: 1.6em; }
.prose p, .prose li { color: #343a5e; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.97rem; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(19,35,91,.07); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eef0f6; vertical-align: top; }
.prose th { background: var(--ice); color: var(--night); font-family: var(--font-display); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.kid-summary {
  background: var(--cream); border: 3px dashed var(--gold-dark); border-radius: 24px;
  padding: 22px 26px; margin: 0 0 12px;
}
.kid-summary h2 { margin-top: 0; font-size: 1.45rem; }
.kid-summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kid-summary li { display: flex; gap: 10px; }

.placeholder {
  background: #fff3a8; color: #6b4c00; padding: 1px 6px; border-radius: 6px; font-weight: 700;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.notfound img { width: 140px; margin: 0 auto 16px; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--night); }
