/* Nano landing. Light by default, one accent, one dark moment. */

@property --bg { syntax: "<color>"; inherits: true; initial-value: #f5f5f7; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #1d1d1f; }
@property --fg2 { syntax: "<color>"; inherits: true; initial-value: #6e6e73; }
@property --card { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #d2d2d7; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #087f63; }

:root {
  --bg: #f5f5f7;
  --fg: #1d1d1f;
  --fg2: #6e6e73;
  --card: #ffffff;
  --line: #d2d2d7;
  --accent: #087f63;
  --nav-bg: rgba(245, 245, 247, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  transition: --bg 0.7s var(--ease), --fg 0.7s var(--ease), --fg2 0.7s var(--ease),
    --card 0.7s var(--ease), --line 0.7s var(--ease), --accent 0.7s var(--ease);
  scroll-behavior: smooth;
}

:root[data-tone="dark"] {
  --bg: #0a2620;
  --fg: #f5f5f7;
  --fg2: #a9c4bb;
  --card: #0f3a2e;
  --line: #1f5546;
  --accent: #52e6b7;
  --nav-bg: rgba(10, 38, 32, 0.72);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
.sprite { position: absolute; width: 0; height: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gutter)); }

h1, h2 { font-weight: 600; letter-spacing: -0.028em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(40px, 8.4vw, 96px); }
.h1-line { white-space: nowrap; }
h2 { font-size: clamp(34px, 5.4vw, 64px); }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.sub, .lede { color: var(--fg2); font-size: clamp(19px, 2.1vw, 24px); line-height: 1.35; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--bg); font-weight: 600; font-size: 17px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn:hover { opacity: 0.88; }
.btn:active, .badge:active { transform: scale(0.97); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge { display: block; border-radius: 9px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.badge img { height: 54px; width: auto; }
.badge:hover { opacity: 0.86; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Nav: the only glass on the page */
.nav {
  position: fixed; inset: 12px 0 auto; z-index: 20;
  width: min(960px, 100% - 2 * var(--gutter)); margin-inline: auto;
  height: 52px; padding: 0 8px 0 16px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent);
  transition: background-color 0.7s var(--ease);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 23%; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--fg2); }
.nav-links a { padding: 12px 0; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { padding: clamp(120px, 17vh, 180px) 0 0; text-align: center; }
.hero-copy { width: min(1000px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero .lede { max-width: 620px; margin: 22px auto 30px; }

.rotor { display: inline-grid; justify-items: start; color: var(--accent); vertical-align: bottom; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; transition: width 0.6s var(--ease); }
.rotor-word { grid-area: 1 / 1; white-space: nowrap; transition: transform 0.6s var(--ease), opacity 0.45s, filter 0.45s; }
.rotor-word.is-out { transform: translateY(-70%); opacity: 0; filter: blur(8px); }
.rotor-word.is-in { transform: translateY(70%); opacity: 0; filter: blur(8px); transition: none; }

.hero-stage {
  --p: 0;
  margin-top: clamp(40px, 7vh, 72px);
  display: grid; place-items: center;
  perspective: 1400px;
}
.hero-stage .phone {
  transform: translateY(calc(var(--p) * -28px)) scale(calc(1 - var(--p) * 0.08)) rotateX(calc((1 - var(--p)) * 10deg));
  transform-origin: 50% 0;
  will-change: transform;
}

.models {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  width: min(900px, 100% - 2 * var(--gutter)); margin: clamp(44px, 7vh, 72px) auto 0;
  padding-bottom: clamp(60px, 10vh, 110px);
  color: var(--fg2); font-size: 15px; font-weight: 500;
}
.models li { display: flex; align-items: center; gap: 8px; }
.models img { width: 20px; height: 20px; }

/* Phone: a structural mock of the real app screens */
.phone {
  --pw: min(310px, 78vw, calc(74svh / 2.06));
  --u: calc(var(--pw) / 300);
  width: var(--pw); aspect-ratio: 300 / 618;
  padding: calc(var(--u) * 9);
  border-radius: calc(var(--u) * 50);
  background: #111113;
  box-shadow: 0 0 0 1px #2c2c2e, 0 40px 80px -30px rgba(0, 0, 0, 0.35), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
  text-align: left;
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--u) * 41);
  background: #fff; color: #1d1d1f;
  font-size: calc(var(--u) * 12.5); line-height: 1.38;
  display: flex; flex-direction: column;
}
.screen svg { width: calc(var(--u) * 17); height: calc(var(--u) * 17); flex: none; }
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--u) * 12) calc(var(--u) * 22) calc(var(--u) * 4);
  font-weight: 600; font-size: calc(var(--u) * 12);
}
.island { width: calc(var(--u) * 76); height: calc(var(--u) * 22); border-radius: 999px; background: #111113; }
.screen .sb-icons { width: calc(var(--u) * 58); height: calc(var(--u) * 11.6); }

.chat-head { display: flex; align-items: center; gap: calc(var(--u) * 6); padding: calc(var(--u) * 6) calc(var(--u) * 10); }
.pill {
  display: inline-flex; align-items: center; gap: calc(var(--u) * 5);
  height: calc(var(--u) * 32); padding: 0 calc(var(--u) * 11); border-radius: 999px;
  background: #f2f2f4; font-weight: 600; font-size: calc(var(--u) * 12); white-space: nowrap;
}
.pill img, .msg-model img { width: calc(var(--u) * 14); height: calc(var(--u) * 14); }
.pill svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); opacity: 0.5; }
.pill-round { width: calc(var(--u) * 32); padding: 0; justify-content: center; }
.pill-round svg { width: calc(var(--u) * 16); height: calc(var(--u) * 16); opacity: 1; }
.pill-group { display: flex; gap: calc(var(--u) * 6); margin-left: auto; }

.thread { flex: 1; display: flex; flex-direction: column; gap: calc(var(--u) * 12); padding: calc(var(--u) * 10) calc(var(--u) * 14); overflow: hidden; }
.msg-user { align-self: flex-end; max-width: 82%; padding: calc(var(--u) * 9) calc(var(--u) * 13); border-radius: calc(var(--u) * 18); background: #f2f2f4; }
.msg-ai p + p { margin-top: calc(var(--u) * 7); }
.msg-model { display: flex; align-items: center; gap: calc(var(--u) * 5); margin-bottom: calc(var(--u) * 5); color: #6e6e73; font-size: calc(var(--u) * 11); font-weight: 600; }
.stream { white-space: pre-wrap; min-height: calc(var(--u) * 150); }
.stream span { animation: ink 0.22s linear both; }
@keyframes ink { from { opacity: 0; } }
.gen { width: 100%; aspect-ratio: 1 / 1.14; object-fit: cover; object-position: 50% 20%; border-radius: calc(var(--u) * 16); }
.sources { display: flex; align-items: center; gap: calc(var(--u) * 4); margin-top: calc(var(--u) * 10); color: #6e6e73; font-size: calc(var(--u) * 11); }
.sources span { display: grid; place-items: center; width: calc(var(--u) * 18); height: calc(var(--u) * 18); border-radius: 50%; background: #f2f2f4; font-weight: 600; }
.sources em { font-style: normal; margin-left: calc(var(--u) * 3); }

.composer { margin: 0 calc(var(--u) * 10) calc(var(--u) * 14); padding: calc(var(--u) * 11) calc(var(--u) * 12); border-radius: calc(var(--u) * 22); background: #fff; box-shadow: 0 0 0 1px #e8e8ed, 0 8px 24px -10px rgba(0, 0, 0, 0.18); }
.composer-field { display: flex; justify-content: space-between; gap: calc(var(--u) * 8); color: #8e8e93; }
.composer-row { display: flex; align-items: center; gap: calc(var(--u) * 13); margin-top: calc(var(--u) * 12); color: #48484a; }
.composer-row .is-on { color: #087f63; }
.send { margin-left: auto; display: grid; place-items: center; width: calc(var(--u) * 30); height: calc(var(--u) * 30); border-radius: 50%; background: #087f63; color: #fff; }
.send svg { width: calc(var(--u) * 15); height: calc(var(--u) * 15); }

.menu { margin: calc(var(--u) * 6) calc(var(--u) * 12); padding: calc(var(--u) * 8); border-radius: calc(var(--u) * 22); background: #fff; box-shadow: 0 0 0 1px #e8e8ed, 0 18px 40px -16px rgba(0, 0, 0, 0.25); }
.menu-title { padding: calc(var(--u) * 6) calc(var(--u) * 8) calc(var(--u) * 8); color: #6e6e73; font-size: calc(var(--u) * 11); font-weight: 600; }
.menu-row { display: flex; align-items: center; gap: calc(var(--u) * 10); padding: calc(var(--u) * 9) calc(var(--u) * 8); border-radius: calc(var(--u) * 12); }
.menu-row img { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
.menu-row span { flex: 1; display: grid; }
.menu-row b { font-weight: 600; }
.menu-row small { color: #6e6e73; font-size: calc(var(--u) * 10); line-height: 1.25; }
.menu-row.is-on { background: #f2f2f4; }
.menu-row.is-on svg { color: #087f63; }

.vm { flex: 1; padding: calc(var(--u) * 8) calc(var(--u) * 14); display: flex; flex-direction: column; gap: calc(var(--u) * 10); }
.vm-title { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: calc(var(--u) * 17); }
.vm-title em { font-style: normal; font-weight: 500; font-size: calc(var(--u) * 12); color: #087f63; }
.vm-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: calc(var(--u) * 8); margin-bottom: calc(var(--u) * 14); }
.vm-grid figure { position: relative; margin: 0; min-height: 0; border-radius: calc(var(--u) * 16); overflow: hidden; background: #e8e8ed; }
.vm-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vm-grid figcaption { position: absolute; inset: auto 0 0; padding: calc(var(--u) * 22) calc(var(--u) * 9) calc(var(--u) * 8); background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); color: #fff; font-weight: 600; font-size: calc(var(--u) * 11); line-height: 1.2; }

/* Pinned scene */
.scene { height: 420vh; position: relative; }
.scene-sticky {
  --p: 0;
  position: sticky; top: 0; height: 100svh;
  width: min(1000px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 6vw, 96px);
  padding-top: 64px;
}
.scene-copy { position: relative; display: grid; align-items: center; }
.step { grid-area: 1 / 1; opacity: 0; transform: translateY(28px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.step.is-past { transform: translateY(-28px); }
.step p:last-child { color: var(--fg2); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.4; max-width: 440px; margin-top: 18px; text-wrap: pretty; }
.scene-dots { position: absolute; left: 0; bottom: -56px; display: flex; gap: 8px; }
.scene-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width 0.5s var(--ease), background-color 0.4s; }
.scene-dots i.is-on { width: 28px; background: var(--accent); }

.scene-stage { perspective: 1600px; }
.scene-stage .phone {
  transform: rotateY(calc((0.5 - var(--p)) * 14deg)) translateY(calc((0.5 - var(--p)) * 26px));
  will-change: transform;
}
.view { position: absolute; inset: calc(var(--u) * 38) 0 0; display: flex; flex-direction: column; opacity: 0; transform: scale(0.97); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.view.is-on { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .scene-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding-top: 84px; text-align: center; justify-items: center; align-items: start; }
  .scene-copy { min-height: 190px; align-items: start; }
  .scene h2 { font-size: clamp(28px, 8vw, 40px); }
  .scene h2 br { display: none; }
  .step p:last-child { margin: 10px auto 0; font-size: 16px; }
  .scene .eyebrow { margin-bottom: 6px; font-size: 15px; }
  .scene-dots { display: none; }
  .scene-stage .phone { --pw: min(260px, 70vw, calc((100svh - 310px) / 2.06)); }
}

/* Sections */
section { scroll-margin-top: 76px; }
.scene { scroll-margin-top: 0; }
.section { padding: clamp(88px, 14vh, 160px) 0; }
.head { text-align: center; margin-bottom: clamp(36px, 6vh, 64px); }
.head .sub { max-width: 600px; margin: 16px auto 0; }

/* Bento: used once */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  grid-column: span 3; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 18px 24px; border-radius: 28px; background: var(--card);
  transition: transform 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
/* Source tiles carry different baked corners (0-20%); one mask larger than all of them makes the set uniform. */
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22.5%; }
.tile p { color: var(--fg2); font-size: 15px; line-height: 1.35; margin-top: 6px; }
.tile-wide { grid-column: span 6; flex-direction: row; align-items: center; padding: 28px 28px 28px 36px; }
.tile-wide > div { flex: 1; }
.tile-wide h3 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.02em; }
.tile-wide p { font-size: 17px; margin-top: 10px; }
.tile-wide img { width: 46%; animation: float 7s ease-in-out infinite; }
.tile-wide:nth-child(2) img { animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .tile { grid-column: span 6; } .tile-wide { grid-column: span 12; } }
@media (max-width: 520px) {
  .bento { gap: 12px; }
  .tile { padding: 12px 12px 18px; border-radius: 22px; gap: 12px; }
  .tile h3 { font-size: 17px; }
  .tile p { font-size: 13px; }
  .tile-wide { padding: 20px; }
  .tile-wide h3 { font-size: 24px; }
  .tile-wide p { font-size: 15px; }
  .tile-wide img { width: 40%; }
}

/* Assistants rail: moves with the scroll */
.rail-section { padding-bottom: clamp(88px, 14vh, 160px); overflow: hidden; }
.rail { --x: 0px; }
.rail-track { display: flex; gap: 18px; width: max-content; padding-inline: var(--gutter); transform: translate3d(var(--x), 0, 0); will-change: transform; }
.rail-track li { width: clamp(240px, 28vw, 340px); }
.rail-track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; margin-bottom: 14px; }
.rail-track p { color: var(--fg2); font-size: 15px; margin-top: 4px; }

/* Dark moment */
.dark { padding-block: clamp(120px, 20vh, 220px); }
.mega { font-size: clamp(48px, 10vw, 128px); letter-spacing: -0.04em; line-height: 0.98; }
.mega span { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(56px, 10vh, 110px); }
.facts li { border-top: 1px solid var(--line); padding-top: 22px; }
.facts p { color: var(--fg2); margin-top: 8px; max-width: 320px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--fg2); border-bottom: 2px solid var(--fg2); transform: rotate(45deg); transition: transform 0.35s var(--ease); margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--fg2); padding: 0 40px 24px 0; max-width: 640px; }

/* CTA + footer */
.cta { text-align: center; }
.cta-icon { margin: 0 auto 28px; border-radius: 23%; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.4); }
.cta h2 { margin-bottom: 32px; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--fg2); }
.footer nav a { padding: 8px 0; }
.footer nav a:hover { color: var(--fg); }
.fine { color: var(--fg2); font-size: 12px; line-height: 1.5; max-width: 820px; }
.fine + .fine { margin-top: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .facts .reveal:nth-child(2) { transition-delay: 0.08s; }
.bento .reveal:nth-child(4), .facts .reveal:nth-child(3) { transition-delay: 0.16s; }
.bento .reveal:nth-child(5) { transition-delay: 0.08s; }
.bento .reveal:nth-child(6) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; transition: none; }
  .rotor { transition: none; }
  .reveal, .step, .view, .rotor-word { transition: opacity 0.2s; transform: none !important; filter: none !important; }
  .hero-stage .phone, .scene-stage .phone { transform: none; }
  .tile-wide img, .stream span { animation: none; }
  .rail { overflow-x: auto; }
  .rail-track { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Legal pages (terms.html, privacy.html), rendered from docs/legal by build-legal.sh */
.legal { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(120px, 17vh, 170px) 0 clamp(72px, 12vh, 140px); }
.legal-head { margin-bottom: clamp(36px, 6vh, 64px); }
.legal-head h1 { font-size: clamp(30px, 6.4vw, 72px); overflow-wrap: break-word; }
.legal-draft { margin-top: 22px; max-width: 640px; padding: 14px 18px; border-radius: 14px; background: var(--card); color: var(--fg2); font-size: 15px; box-shadow: inset 3px 0 0 var(--accent); }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }

.legal-toc { position: sticky; top: 88px; max-height: calc(100svh - 112px); overflow-y: auto; font-size: 14px; line-height: 1.35; }
.legal-toc > p { color: var(--fg); font-weight: 600; margin-bottom: 10px; }
.legal-toc ul ul { display: none; }
.legal-toc a { display: block; padding: 6px 0; color: var(--fg2); transition: color 0.2s; }
.legal-toc a:hover { color: var(--fg); }

.legal-body { max-width: 720px; font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
.legal-body > :first-child { margin-top: 0; }
.legal-body h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.15; margin: 56px 0 16px; scroll-margin-top: 92px; text-wrap: balance; }
.legal-body h3 { font-size: 19px; margin: 32px 0 10px; scroll-margin-top: 92px; }
.legal-body p, .legal-body ul, .legal-body table { margin: 0 0 16px; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--fg2); }
.legal-body strong { font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.legal-body th, .legal-body td { min-width: 150px; padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-body th { font-weight: 600; white-space: nowrap; }
.legal-body .todo { padding: 1px 6px; border-radius: 6px; background: #ffe9a8; color: #5c4400; font-size: 0.88em; font-weight: 500; }

@media (max-width: 860px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .legal-toc ul { columns: 2; column-gap: 24px; }
  .legal-toc li { break-inside: avoid; }
}
@media (max-width: 520px) { .legal-toc ul { columns: 1; } }
.legal-page .nav-links { display: flex; }
/* Phones: the nav keeps only the language switch; both documents stay linked in the footer. */
@media (max-width: 720px) { .legal-page .nav-links a:not([hreflang]) { display: none; } .legal-page .nav-links { margin-left: auto; } .legal-page .nav .btn { margin-left: 0; } }
