/* Styles for the static public pages (landing, privacy, tos). Colors mirror web/src/styles/app.css. */
:root {
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --ink-faint: #71717a;
  --line: #e4e4e7;
  --surface: #ffffff;
  --canvas: #ffffff;
  --wash: #f6f6f7;
  --accent: #18181b;
  --on-accent: #ffffff;
  --in: #15803d;
  --out: #dc2626;
  --gold: #e0a800;
  --gold-tint: rgba(224, 168, 0, 0.16);
  --max: 1120px;
  color-scheme: light;
}
/* Dark: chosen theme in the app (html.dark), or the system setting when no choice is known. */
html.dark {
  --ink: #f4f4f5;
  --ink-soft: #d4d4d8;
  --ink-faint: #a1a1aa;
  --line: #2e2e33;
  --surface: #18181b;
  --canvas: #101012;
  --wash: #202024;
  --accent: #f4f4f5;
  --on-accent: #18181b;
  --in: #4ade80;
  --out: #f87171;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not(.light):not(.dark) {
    --ink: #f4f4f5;
    --ink-soft: #d4d4d8;
    --ink-faint: #a1a1aa;
    --line: #2e2e33;
    --surface: #18181b;
    --canvas: #101012;
    --wash: #202024;
    --accent: #f4f4f5;
    --on-accent: #18181b;
    --in: #4ade80;
    --out: #f87171;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 22px; height: 22px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* Header */
.pub-head {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.pub-head--raised { border-bottom-color: var(--line); }
.pub-head__row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 9px; }
.pub-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pub-nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-soft); text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.pub-nav a:not(.btn):hover { background: var(--wash); color: var(--ink); }
.pub-nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.pub-nav .pub-nav__cta { display: none; }
.pub-menu { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--wash); }
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent); opacity: 0.88; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 16px; }
.pub-head .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.pub-head__cta { margin-left: 8px; }

@media (max-width: 860px) {
  .pub-head__cta { margin-left: auto; }
  .pub-menu { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
  .pub-menu:hover { background: var(--wash); }
  .pub-nav { display: none; position: absolute; top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 16px; background: var(--canvas); border-bottom: 1px solid var(--line); }
  .menu-open .pub-nav { display: flex; }
  .pub-nav a:not(.btn) { padding: 12px; font-size: 16px; }
}
@media (max-width: 420px) {
  .pub-head__cta { display: none; }
  .pub-menu { margin-left: auto; }
  .pub-nav .pub-nav__cta { display: inline-flex; margin-top: 8px; }
}

/* Footer */
.pub-foot { margin-top: 32px; padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--wash); font-size: 14px; }
.pub-foot__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .pub-foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
.pub-foot__about p { margin: 12px 0 0; max-width: 300px; color: var(--ink-faint); }
.pub-foot__title { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.pub-foot__grid > div > a:not(.brand) { display: block; padding: 3px 0; color: var(--ink-soft); text-decoration: none; }
.pub-foot__grid > div > a:not(.brand):hover { color: var(--ink); text-decoration: underline; }
.pub-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13px; }

/* ---------- Landing ---------- */
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.sec { padding: 72px 0; }
.sec--wash { background: var(--wash); }
.band { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-title { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.sec-lead { margin: 12px 0 0; font-size: 17px; color: var(--ink-faint); }
@media (max-width: 640px) { .sec { padding: 56px 0; } }
[id] { scroll-margin-top: 80px; }

.hero { padding: 48px 0 64px; overflow: hidden; isolation: isolate; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } .hero__grid { grid-template-columns: 1.1fr 0.9fr; } }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--in); box-shadow: 0 0 0 3px color-mix(in srgb, var(--in) 22%, transparent); }
.hero__title { position: relative; z-index: 0; margin: 0; font-size: clamp(36px, 6.4vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: 0.08em; height: 0.36em; border-radius: 4px; background: var(--gold-tint); z-index: -1; }
.hero__lead { margin: 20px 0 0; max-width: 540px; font-size: 18px; color: var(--ink-faint); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; color: var(--ink); }
.hero__lead code { padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .i { color: var(--in); }
@media (max-width: 480px) { .hero__cta .btn { flex: 1 1 100%; } }
}

.hero__visual { position: relative; display: flex; justify-content: center; padding: 16px 0; }
.hero__visual::before { content: ''; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 40%; background: radial-gradient(closest-side, var(--gold-tint), transparent); filter: blur(8px); }
.phone { position: relative; width: 300px; max-width: 82vw; padding: 10px; border-radius: 44px; background: #18181b; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.phone__notch { position: absolute; top: 18px; left: 50%; z-index: 2; width: 84px; height: 22px; border-radius: 999px; background: #18181b; transform: translateX(-50%); }
.phone__screen { display: flex; flex-direction: column; height: 560px; padding: 48px 14px 0; overflow: hidden; border-radius: 34px; background: var(--canvas); font-size: 13px; }
.phone__head { display: flex; align-items: center; justify-content: space-between; }
.phone__title { font-size: 17px; font-weight: 700; }
.phone__chip { padding: 3px 10px; border-radius: 999px; background: var(--wash); font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.phone__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.phone__stats div { padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.phone__stats small { display: block; font-size: 10px; color: var(--ink-faint); }
.phone__stats b { font-size: 14px; }
.in { color: var(--in); }
.out { color: var(--out); }
.phone__day { margin: 14px 0 4px; font-size: 12px; font-weight: 700; }
.phone__list { flex: 1; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.phone__row { display: flex; align-items: center; gap: 8px; margin: 0 -6px; padding: 9px 6px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.phone__row--fresh { animation: row-in 0.35s cubic-bezier(0.22, 1, 0.36, 1), fade-tint 2.4s ease forwards; }
@keyframes row-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes fade-tint { from { background: rgba(224, 168, 0, 0.24); } to { background: transparent; } }
.phone__row-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.phone__note { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.phone__meta { overflow: hidden; font-size: 11px; color: var(--ink-faint); white-space: nowrap; text-overflow: ellipsis; }
.phone__amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone__dock { padding: 6px 0 10px; }
/* One rounded field like the app: text on the left; camera, gallery, and mic/send inside on the right. */
.phone__field { display: flex; align-items: center; gap: 2px; height: 42px; padding: 0 3px 0 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color 0.2s; }
.phone__input { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; height: 100%; padding: 0 6px 0 14px; overflow: hidden; white-space: nowrap; }
.phone__ph { overflow: hidden; color: var(--ink-faint); text-overflow: ellipsis; }
.phone__typed { overflow: hidden; font-weight: 500; text-overflow: ellipsis; }
.phone__ic { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink-soft); transition: background 0.2s, color 0.2s; }
.phone__ic--press { background: var(--wash); color: var(--ink); box-shadow: 0 0 0 2px var(--gold); }
.phone__field[data-state="typing"] .phone__ic,
.phone__field[data-state="listening"] .phone__ic,
.phone__field[data-state="reading"] .phone__ic { display: none; }
.phone__field[data-state="listening"] { border-color: #dc2626; }
.phone__field[data-state="listening"] .phone__send { background: #dc2626; color: #fff; }
.phone__field[data-state="reading"] .phone__send { opacity: 0.5; }
.phone__live { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #dc2626; animation: live-pulse 1s infinite; }
@keyframes live-pulse { 50% { opacity: 0.25; } }
.phone__spin { display: inline-block; flex: none; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone__status { color: var(--ink-soft); font-weight: 500; }
.phone__mode { display: inline-flex; align-self: center; align-items: center; gap: 6px; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px; background: var(--wash); font-size: 11px; font-weight: 700; color: var(--ink-soft); transition: opacity 0.25s; }
.phone__mode--swap { opacity: 0; }
.phone__screen { position: relative; }
.phone__receipt { position: absolute; left: 46%; bottom: 150px; z-index: 3; display: flex; flex-direction: column; gap: 4px; width: 190px; padding: 14px 14px 16px; overflow: hidden; border-radius: 6px 6px 2px 2px; background: #fffdf6; color: #3f3f46; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transform: translate(-50%, 24px) rotate(-3deg); transition: opacity 0.35s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.phone__receipt b { margin-bottom: 4px; text-align: center; letter-spacing: 0.08em; }
.phone__receipt span { display: flex; justify-content: space-between; gap: 8px; }
.phone__receipt i { font-style: normal; }
.phone__receipt-total { margin-top: 4px; padding-top: 6px; border-top: 1px dashed #a1a1aa; font-weight: 700; }
.phone__receipt--show { opacity: 1; transform: translate(-50%, 0) rotate(-3deg); }
.phone__scan { position: absolute; inset: 0 0 auto; height: 2px; background: var(--gold); box-shadow: 0 0 12px 2px var(--gold); opacity: 0; }
.phone__receipt--scan .phone__scan { opacity: 1; animation: scan 1.1s ease-in-out infinite alternate; }
@keyframes scan { from { top: 4%; } to { top: 94%; } }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--ink); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.phone__send { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.phone__nav { display: flex; justify-content: space-around; margin: 0 -14px; padding: 6px 0 14px; border-top: 1px solid var(--line); font-size: 10px; color: var(--ink-faint); }
.phone__nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone__nav .on { color: var(--ink); font-weight: 700; }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.2); animation: bob 5s ease-in-out infinite; }
.float--a { top: 5%; left: 0; }
.float--b { bottom: 28%; right: 0; animation-delay: -2.5s; }
.float--b .i { color: var(--gold); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 560px) { .float { display: none; } }
/* Phones: show the live demo in the first screen (title, demo, then the call to action). */
@media (max-width: 899px) {
  .hero { padding: 28px 0 48px; }
  .hero__grid { gap: 0; }
  .hero__grid > div:first-child { display: contents; }
  .hero__grid .badge { order: 1; margin-bottom: 14px; }
  .hero__title { order: 2; }
  .hero__visual { order: 3; padding: 20px 0 4px; }
  .hero__cta { order: 4; margin-top: 20px; }
  .hero__lead { order: 5; }
  .hero__points { order: 6; }
  .phone { width: 270px; }
  .phone__screen { height: 430px; }
  .phone__receipt { bottom: 120px; }

.parse { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.parse__card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.parse__in { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 999px; background: var(--wash); font-size: 14px; font-weight: 600; }
.parse__in .i { color: var(--ink-faint); }
.parse__arrow { align-self: center; color: var(--ink-faint); }
.parse__out { display: grid; gap: 6px; margin: 0; }
.parse__out div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.parse__out dt { color: var(--ink-faint); }
.parse__out dd { margin: 0; font-weight: 600; text-align: right; }
.shortcuts { margin: 24px 0 0; font-size: 14px; color: var(--ink-faint); }
kbd { padding: 2px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }

.feat { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.feat__card { padding: 28px 24px; background: var(--canvas); transition: background 0.2s ease; }
.feat__card:hover { background: var(--surface); }
.feat__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); color: var(--ink); }
.feat__card h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 700; }
.feat__card p { margin: 0; font-size: 15px; color: var(--ink-faint); }

.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li { padding: 28px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--canvas); }
.steps__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.steps h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-faint); }

.privacy { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .privacy { grid-template-columns: 1fr 1fr; gap: 64px; } }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.privacy__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.privacy__list li { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.privacy__list .i { color: var(--in); }
.privacy__list b { display: block; font-size: 16px; }
.privacy__list span { font-size: 14px; color: var(--ink-faint); }

.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-faint); transition: transform 0.2s ease; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-faint); }
.faq h3 { margin: 0; font: inherit; }

.cta { display: flex; flex-direction: column; align-items: center; padding: 56px 24px; border-radius: 28px; background: #18181b; color: #fafafa; text-align: center; }
html.dark .cta { background: #202024; border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { html:not(.light):not(.dark) .cta { background: #202024; border: 1px solid var(--line); } }
.cta img { border-radius: 18px; }
.cta h2 { margin: 20px 0 8px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.cta p { margin: 0 0 28px; font-size: 17px; color: #a1a1aa; }
.cta .btn { border-color: #fafafa; background: #fafafa; color: #18181b; }
.cta .btn:hover { background: #e4e4e7; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--wash); }
.legal-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.legal-hero__lead { max-width: 680px; margin: 14px 0 0; font-size: 18px; color: var(--ink-faint); }
.legal-hero__date { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.legal { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
@media (min-width: 960px) { .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 56px; } }
.legal__toc { display: none; }
@media (min-width: 960px) { .legal__toc { display: block; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; } }
.legal__toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 10px; margin-left: -1px; padding: 6px 12px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--ink-faint); text-decoration: none; transition: color 0.15s ease, border-color 0.15s ease; }
.legal__toc a::before { content: counter(toc); flex: none; width: 18px; font-variant-numeric: tabular-nums; }
.legal__toc a:hover { color: var(--ink); }
.legal__toc a.on { border-left-color: var(--ink); color: var(--ink); font-weight: 600; }

.legal__body { min-width: 0; max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--ink-soft); counter-reset: sec; }
.legal__body section { padding-bottom: 12px; counter-increment: sec; }
.legal__body section + section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal__body h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.legal__body h2::before { content: counter(sec); flex: none; font-size: 15px; font-weight: 700; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.legal__body h3 { margin: 20px 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.legal__body p { margin: 0 0 12px; }
.legal__body ul { margin: 0 0 12px; padding-left: 22px; }
.legal__body li { margin: 4px 0; }
.legal__body li::marker { color: var(--ink-faint); }
.legal__body strong { font-weight: 600; color: var(--ink); }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__body code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--wash); font-size: 0.88em; word-break: break-word; }

.legal-summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0 0 36px !important; padding: 0 !important; list-style: none; }
.legal-summary li { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14px; line-height: 1.5; color: var(--ink-faint); }
.legal-summary .i { display: block; margin-bottom: 8px; color: var(--in); }
.legal-summary b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--ink); }
.legal-note { display: flex; gap: 12px; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; background: var(--wash); font-size: 15px; }
.legal-note .i { margin-top: 4px; color: var(--gold); }
.legal-note p:last-child { margin-bottom: 0; }

.legal-table { width: 100%; margin: 8px 0 16px; overflow: hidden; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.legal-table th, .legal-table td { padding: 10px 14px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--wash); font-size: 13px; font-weight: 700; color: var(--ink); }
.legal-table td { border-top: 1px solid var(--line); }
.legal-table td:first-child { font-weight: 600; color: var(--ink); }
@media (max-width: 600px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr + tr { border-top: 1px solid var(--line); }
  .legal-table td { padding: 4px 14px; border-top: 0; }
  .legal-table td:first-child { padding-top: 12px; }
  .legal-table td:last-child { padding-bottom: 12px; }
  .legal-table td[data-label]::before { content: attr(data-label) ': '; font-weight: 600; color: var(--ink-faint); }
}

@media (prefers-reduced-motion: reduce) {
  .float, .caret, .phone__row--fresh, .phone__live, .phone__spin, .phone__receipt--scan .phone__scan { animation: none; }
  .phone__receipt, .phone__mode { transition: none; }
  .btn, .faq summary .i { transition: none; }
}
