/* =========================================================
   KD Turtle – site styles
   ========================================================= */
:root {
  --bg: #fbfbf7;
  --bg-soft: #f1f4fb;
  --surface: #ffffff;
  --text: #161c33;
  --muted: #5b6380;
  --line: #e3e7f1;
  --brand: #2343c4;
  --brand-strong: #19309a;
  --brand-soft: #e6ebff;
  --lime: #c3ea2a;
  --lime-strong: #8fb515;
  --accent: #ff7a59;
  --sun: #ffc857;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(22, 28, 51, .06), 0 2px 8px rgba(22, 28, 51, .05);
  --shadow-md: 0 8px 30px rgba(22, 28, 51, .12);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1120;
    --bg-soft: #131728;
    --surface: #1a1f35;
    --text: #e9ecf7;
    --muted: #a1a8c3;
    --line: #2a3150;
    --brand: #7f9bff;
    --brand-strong: #a3b8ff;
    --brand-soft: #1f2850;
    --on-brand: #0b1030;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(35, 67, 196, .28); }
.btn--primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn--light { background: #fff; color: #17231c; }
.btn--light:hover { color: var(--brand); }

/* Google Play style button */
.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111; color: #fff; text-decoration: none;
  padding: 10px 22px 10px 16px; border-radius: 14px; min-height: 56px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.btn-play:hover { color: #fff; transform: translateY(-2px); }
.btn-play svg { width: 26px; height: 26px; }
.btn-play small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1.1; }
.btn-play strong { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.1; }
.btn-play.is-disabled { background: var(--line); color: var(--muted); box-shadow: none; pointer-events: none; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 900; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
/* One square master icon; portrait slots crop its transparent side padding */
img[src$="kdturtle-icon.png"] { object-fit: cover; }
.hero__mascot, .about__card img, .notfound img { aspect-ratio: 254 / 398; }
.brand:hover { color: var(--text); }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu a:not(.btn) {
  color: var(--muted); text-decoration: none; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
.nav__menu a:not(.btn):hover, .nav__menu a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.nav__menu .btn { margin-left: 8px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--bg-soft); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between;
}
.nav__toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.75px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; left: 12px; right: 12px; top: 72px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px; box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
  .nav__menu .btn { margin: 6px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section__head p { color: var(--muted); max-width: 520px; margin-top: 10px; font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { gap: 10px; }
.link-arrow { transition: gap .15s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 18%, transparent), transparent);
  z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: .9rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm);
}
.pill b { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.hero h1 { margin: 22px 0 18px; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: var(--lime); opacity: .7; border-radius: 6px; z-index: -1;
}
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--brand); }

.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.hero__blob {
  position: absolute; inset: 6%;
  background: linear-gradient(145deg, var(--brand-soft), color-mix(in srgb, var(--lime) 40%, var(--brand-soft)));
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  animation: blob 12s ease-in-out infinite alternate;
}
@media (prefers-color-scheme: dark) {
  .hero__blob { background: linear-gradient(145deg, #1f2850, #26401f); }
}
.hero__mascot {
  position: absolute; left: 30%; width: 40%; top: 12%;
  filter: drop-shadow(0 18px 24px rgba(22, 28, 51, .18));
  animation: bob 4s ease-in-out infinite;
}
.tile {
  position: absolute; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 900; color: #fff; border-radius: 16px;
  box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite;
}
.tile--a { width: 64px; height: 64px; font-size: 1.6rem; background: var(--sun); color: #5a3d00; top: 8%; left: 10%; }
.tile--b { width: 76px; height: 76px; font-size: 1.7rem; background: var(--accent); top: 12%; right: 6%; animation-delay: -2s; }
.tile--c { width: 96px; height: 96px; font-size: 1.5rem; background: var(--lime-strong); bottom: 2%; right: 2%; animation-delay: -4s; }
.tile--d { width: 52px; height: 52px; font-size: 1.2rem; background: #7c6cf0; bottom: 14%; left: 8%; animation-delay: -1s; }

@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes blob { to { border-radius: 55% 45% 42% 58% / 42% 58% 45% 55%; } }

@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__art { max-width: 300px; order: -1; }
  .section { padding: 72px 0; }
}

/* ---------- Games ---------- */
.games { display: grid; gap: 24px; }
.game-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.game-feature__info { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.game-feature__top { display: flex; align-items: center; gap: 18px; }
.app-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow-md); flex: none; background: var(--bg-soft); }
.app-icon--lg { width: 128px; height: 128px; border-radius: 30px; }
.game-feature h3 { font-size: 1.6rem; }
.game-feature p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}
.tag--live { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.tag--live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.tag--soon { background: color-mix(in srgb, var(--sun) 30%, transparent); color: #7a5300; border-color: transparent; }
@media (prefers-color-scheme: dark) { .tag--soon { color: var(--sun); } }
.game-feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.game-feature__shots {
  position: relative; background: linear-gradient(160deg, #ffe7b3, #ffb38a);
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 36px 24px; min-height: 360px;
}
.game-feature__shots img {
  width: 42%; max-width: 190px; border-radius: 18px; box-shadow: 0 16px 40px rgba(90, 40, 0, .25);
  border: 4px solid #fff;
}
.game-feature__shots img:nth-child(1) { transform: rotate(-5deg) translateY(10px); }
.game-feature__shots img:nth-child(2) { transform: rotate(4deg) translateY(-10px); }

.game-soon {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  background: var(--surface); border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 28px; padding: 28px 32px;
}
.game-soon__art {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff9a62, #ff5e7e); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 1.6rem;
  box-shadow: var(--shadow-md);
}
img.game-soon__art { object-fit: cover; background: none; }
.game-soon h3 { margin-bottom: 6px; }
.game-soon p { color: var(--muted); }

@media (max-width: 860px) {
  .game-feature { grid-template-columns: 1fr; }
  .game-feature__info { padding: 28px 24px; }
  .game-feature__shots { min-height: 300px; order: -1; }
  .game-soon { grid-template-columns: auto 1fr; padding: 24px; }
  .game-soon .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.value__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand);
}
.value__icon svg { width: 26px; height: 26px; }
.value:nth-child(2) .value__icon { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.value:nth-child(3) .value__icon { background: color-mix(in srgb, #7c6cf0 16%, transparent); color: #7c6cf0; }
.value:nth-child(4) .value__icon { background: color-mix(in srgb, var(--sun) 28%, transparent); color: #b07800; }
.value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about__card {
  position: relative; background: linear-gradient(160deg, #2c50d8, #172a85);
  border-radius: 32px; padding: 40px; color: #fff; overflow: hidden; box-shadow: var(--shadow-md);
}
.about__card::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); right: -80px; top: -80px;
}
.about__card img { width: 42%; margin: 10px auto 24px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .2)); }
.about__card .sig { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; }
.about__card .role { opacity: .85; }
.about__text h2 { margin-bottom: 18px; }
.about__text p { color: var(--muted); font-size: 1.08rem; margin-bottom: 16px; }
.about__text strong { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.fact b { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--brand); }
.fact span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__card { max-width: 420px; }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #19309a, #2343c4 55%, #3b5be0);
  color: #fff; border-radius: 32px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 22px; background: rgba(255, 255, 255, .1); transform: rotate(18deg); }
.cta::before { width: 180px; height: 180px; right: 20%; top: -90px; }
.cta::after { width: 120px; height: 120px; right: -30px; bottom: -40px; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { opacity: .9; font-size: 1.1rem; max-width: 520px; }
.cta > * { position: relative; z-index: 1; }
@media (max-width: 600px) { .cta { padding: 36px 24px; border-radius: 24px; } }

/* ---------- Game page ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.game-hero { padding: 40px 0 80px; }
.game-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.game-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 22px 0 14px; }
.game-hero__lead { color: var(--muted); font-size: 1.15rem; max-width: 540px; }
.game-hero .tags { margin-top: 18px; }
.game-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.game-hero__meta { color: var(--muted); font-size: .9rem; }

.phone {
  justify-self: center; width: min(300px, 80vw); aspect-ratio: 300 / 522; border-radius: 42px;
  background: #111; padding: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25), inset 0 0 0 2px #333;
  position: relative; transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before {
  content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sun) 55%, transparent), transparent);
}
.soon-art {
  justify-self: center; width: min(340px, 80vw); aspect-ratio: 1; border-radius: 48px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, #ff9a62, #ff5e7e); color: #fff; box-shadow: var(--shadow-md);
  font-family: var(--font-head); font-weight: 900; font-size: 2.4rem; line-height: 1.1; padding: 32px;
  transform: rotate(-3deg);
}
.soon-art--img { padding: 0; object-fit: cover; }
.soon-art small { display: block; font-size: 1rem; opacity: .85; margin-top: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 860px) {
  .game-hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px;
  scrollbar-width: thin;
}
.gallery img {
  height: 440px; width: auto; border-radius: 22px; scroll-snap-align: start; flex: none;
  box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--surface);
}
@media (max-width: 600px) { .gallery img { height: 360px; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .value__icon { margin: 0; flex: none; width: 46px; height: 46px; border-radius: 14px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .97rem; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--sun); color: #5a3d00; font-family: var(--font-head); font-weight: 900; font-size: 1.2rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 12px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 96px; }
.legal__head { max-width: 760px; margin-bottom: 40px; }
.legal__head h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 8px 0 14px; }
.updated { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem; border-radius: 999px; padding: 4px 12px; }
.legal__grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: .93rem; }
.toc b { display: block; font-family: var(--font-head); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.08rem; margin: 24px 0 8px; scroll-margin-top: 96px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.summary-box {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: var(--radius-sm); padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.summary-box h2 { margin: 0 0 10px !important; font-size: 1.1rem !important; }
.summary-box ul { margin: 0; }
.service-list { display: grid; gap: 10px; padding: 0 !important; list-style: none; }
.service-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 !important; }
@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 24px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__about p { color: var(--muted); margin-top: 14px; max-width: 300px; }
.footer h4 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--text); text-decoration: none; padding: 4px 0; }
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.notfound img { width: 140px; margin: 0 auto 24px; animation: bob 4s ease-in-out infinite; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }
