/* Layout: one centered column. Hero, the product in a browser, a scroll-lit statement, privacy cards, three steps, pricing, FAQ, final call. */
:root {
  color-scheme: dark;
  /* the extension's dark UI */
  --bg: #17191C; --well: #131517; --card: #1C1E22; --card-2: #202227; --muted: #2A2D32;
  --fg: #ECEDEE; --fg-2: #A2A8B1; --fg-3: #7C828B; --fg-dim: #4E535B;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.13);
  --key-top: #34373D; --key-bottom: #2A2D32; --key-edge: rgba(0,0,0,.55); --key-hi: rgba(255,255,255,.09);
  --key-shadow: 0 1px 1px rgba(0,0,0,.35), 0 2px 5px -1px rgba(0,0,0,.45);
  --sheet-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -24px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.3);
  /* SuperBusy orange as the one action color */
  --or: #D4420B; --or-top: #E4531A; --or-deep: #A93208; --or-text: #FF7A45; --or-soft: rgba(212,66,11,.14);
  --ok: #4CC38A;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px; --r-card: 24px;
  --wrap: 1120px;
}
body { background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
* { box-sizing: border-box; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or-text); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }

/* ---------- buttons: the extension's keys, orange for the main action ---------- */
.btn { --press: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transform: scale(var(--press));
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); color: var(--fg);
  border: 1px solid var(--key-edge); box-shadow: inset 0 1px 0 var(--key-hi), var(--key-shadow); }
.btn:hover { background: linear-gradient(180deg, #3B3E45, #2F3238); }
.btn.primary { background: linear-gradient(180deg, var(--or-top), var(--or)); color: #fff; border-color: var(--or-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 1px rgba(0,0,0,.35), 0 6px 18px -6px rgba(212,66,11,.6); }
.btn.primary:hover { background: linear-gradient(180deg, #EC5E24, #DC4910); }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn .arrow { display: inline-block; transform: translateX(var(--nudge, 0px)); }
.cta-note { font-size: 13.5px; color: var(--fg-3); }

/* ---------- nav ---------- */
.nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); z-index: 20; margin-top: 20px; }
.nav .bar-in { display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 10px 0 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--card) 78%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 32px -12px rgba(0,0,0,.6); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo svg { height: 17px; width: auto; display: block; }
.logo .tag { font: 600 13px/1 var(--font); color: var(--fg-2); padding: 5px 8px; border-radius: 6px; background: var(--muted); }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--fg-2); text-decoration: none; font-size: 14px; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.nav nav a:hover { color: var(--fg); background: var(--muted); }
.nav .btn { min-height: 40px; font-size: 14px; padding: 0 14px; }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } .nav .bar-in { gap: 10px; padding: 0 8px 0 14px; } }
@media (max-width: 400px) { .logo .tag { display: none; } }

/* ---------- hero ---------- */
.hero { text-align: center; padding-block: 64px 44px; position: relative; display: grid; justify-items: center; }
.hero::before { content: ""; position: absolute; inset: -64px 0 auto; height: 560px; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 30%, rgba(212,66,11,.15), transparent 70%); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: 13px; color: var(--fg-2); position: relative; }
.pill .lock { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--or-soft); color: var(--or-text); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.042em; margin-top: 24px; max-width: 15ch; position: relative; font-weight: 700; }
.hero .sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-2); max-width: 58ch; margin-top: 20px; position: relative; }
.hero .ctas { display: grid; gap: 12px; justify-items: center; margin-top: 32px; position: relative; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin: 28px 0 0; color: var(--fg-3); font-size: 14px; position: relative; padding: 0; list-style: none; }
.badges li { display: flex; align-items: center; gap: 7px; }
.badges svg { color: var(--ok); }
.rise { transform: translateY(var(--rise, 0px)); }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; text-align: left; max-width: 540px; width: 100%; position: relative; margin-top: 36px; }
.points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 17px; color: var(--fg-2); line-height: 1.45; }
.points li svg { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--muted); color: var(--fg); margin-top: -2px; }
.points li.safe { color: var(--fg); }
.points li.safe svg { background: rgba(76,195,138,.14); color: var(--ok); }
.bw { display: inline-block; will-change: transform, filter; }

/* ---------- the product in a browser ---------- */
.stage { padding-block: 8px 24px; }
.browser { position: relative; border-radius: 16px; background: #0E0F11; border: 1px solid var(--line-2); box-shadow: var(--sheet-shadow), 0 0 0 1px rgba(0,0,0,.6); overflow: hidden; max-width: 100%;
  transform: perspective(1600px) rotateX(var(--tilt, 0deg)); transform-origin: 50% 0; }
.browser .bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #1B1D21; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A3D43; display: block; }
.url { flex: 1; max-width: 420px; margin: 0 auto; height: 26px; border-radius: 7px; background: var(--well); color: var(--fg-3); font: 12px/26px var(--font); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.url b { color: var(--fg-2); font-weight: 500; }
.screen { position: relative; }
.screen img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; }
.cursor { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.cursor .dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(212,66,11,.28), 0 4px 14px rgba(0,0,0,.5); }
.cursor .ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--or-text); opacity: 0; }
.local-flag { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(38,41,46,.92); border: 1px solid var(--line-2); font-size: 13px; color: var(--fg); box-shadow: var(--key-shadow); backdrop-filter: blur(8px); }
.local-flag .led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(76,195,138,.18); }
@media (max-width: 600px) { .local-flag { display: none; } .browser .bar { height: 30px; } .dots i { width: 8px; height: 8px; } .url { height: 20px; line-height: 20px; font-size: 10px; } .cursor .dot { width: 12px; height: 12px; left: -6px; top: -6px; } }

/* ---------- statement, lit word by word as it scrolls ---------- */
.statement { padding-block: 120px 96px; text-align: center; }
.statement p { font: 600 clamp(26px, 3.4vw, 42px)/1.25 var(--display); letter-spacing: -0.025em; max-width: 30ch; margin: 0 auto; color: var(--fg); text-wrap: balance; }
.statement p .hl { color: var(--or-text); }
.statement .w { color: var(--c, inherit); }

/* ---------- section heads ---------- */
section { scroll-margin-top: 80px; }
.head { text-align: center; max-width: 640px; margin: 0 auto 48px; display: grid; gap: 14px; justify-items: center; }
.head h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; }
.head p { color: var(--fg-2); font-size: 17px; max-width: 48ch; }
.block { padding-block: 80px; }

/* ---------- cards (Expo-like: big radius, generous padding, visual on top, centered copy) ---------- */
.card { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card) 55%); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); min-width: 0; transform: translateY(var(--rise, 0px)); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.pcard { padding: 40px 36px 40px; display: grid; gap: 32px; align-content: start; text-align: center; }
.pcard .txt { display: grid; gap: 10px; justify-items: center; }
.pcard h3 { font-size: 22px; line-height: 1.2; font-weight: 650; }
.pcard p { color: var(--fg-2); font-size: 15px; max-width: 40ch; }
.vis { min-height: 220px; display: grid; align-content: center; justify-items: center; position: relative; text-align: left; }
.vis > * { width: 100%; max-width: 400px; }
@media (max-width: 520px) { .pcard { padding: 28px 18px; gap: 24px; } .grid2 { gap: 14px; } }

/* hide area demo */
.hide-demo { display: grid; gap: 14px; justify-items: center; }
.hide-demo canvas { width: 100%; height: 160px; display: block; border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.tool { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 10px; font: 500 13.5px/1 var(--font); color: var(--fg); cursor: pointer;
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); border: 1px solid var(--key-edge); box-shadow: inset 0 1px 0 var(--key-hi), var(--key-shadow); transform: scale(var(--press, 1)); }
.tool[aria-pressed="true"] { background: var(--or-soft); border-color: rgba(255,122,69,.45); color: var(--or-text); box-shadow: none; }

/* password step */
.steps-mock { display: grid; gap: 8px; }
.srow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: var(--well); border: 1px solid var(--line); font-size: 14px; transform: translateY(var(--rise, 0px)); }
.srow .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--muted); color: var(--fg-2); font: 600 12px/1 var(--font); }
.srow .t { min-width: 0; }
.srow .v { font: 12.5px/1 var(--mono); color: var(--fg-3); }
.srow.sens { border-color: rgba(255,122,69,.35); background: linear-gradient(90deg, var(--or-soft), transparent 70%), var(--well); }
.srow.sens .n { background: var(--or); color: #fff; }
.srow.sens .v { color: var(--or-text); display: flex; gap: 6px; align-items: center; transform: scale(var(--pop, 1)); transform-origin: 100% 50%; }

/* on-device AI */
.ai-mock { display: grid; gap: 10px; }
.bubble { padding: 13px 15px; border-radius: 12px; background: var(--well); border: 1px solid var(--line); font-size: 14px; min-height: 48px; }
.bubble.before { color: var(--fg-3); font-family: var(--mono); font-size: 12.5px; }
.bubble.after { border-color: var(--line-2); }
.bubble.after .caret { display: inline-block; width: 2px; height: 1em; background: var(--or-text); vertical-align: -2px; margin-left: 1px; opacity: var(--blink, 0); }
.chip-ok { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ok); opacity: var(--show, 1); }
.chip-ok .led { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.model { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--fg-3); justify-content: center; }

/* editing toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.toolbar .tool { min-height: 36px; padding: 0 12px; }
.toolbar .tool.ghost { color: var(--fg-2); }

/* voiceover */
.vo { display: grid; gap: 16px; justify-items: center; }
.player { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); }
.play { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--or-top), var(--or)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 12px -4px rgba(212,66,11,.6); transform: scale(var(--press, 1)); }
.wave { display: flex; align-items: center; gap: 3px; height: 36px; min-width: 0; overflow: hidden; }
.wave i { flex: 1 0 3px; max-width: 4px; border-radius: 2px; background: var(--fg-dim); height: 100%; transform: scaleY(var(--h, .2)); }
.wave i.on { background: var(--or-text); }
.player .time { font: 12.5px/1 var(--mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.langs span { font-size: 12.5px; padding: 5px 9px; border-radius: 999px; background: var(--muted); color: var(--fg-2); }
.langs span.on { background: var(--or-soft); color: var(--or-text); }

/* export */
.exports { display: grid; gap: 8px; }
.exp-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: var(--well); border: 1px solid var(--line); font-size: 14px; transform: translateY(var(--rise, 0px)); position: relative; overflow: hidden; }
.exp-row .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--muted); color: var(--fg-2); }
.exp-row small { color: var(--fg-3); font-size: 12.5px; display: block; }
.tagpro { font: 600 11px/1 var(--font); padding: 4px 7px; border-radius: 6px; background: var(--or-soft); color: var(--or-text); }
.tagfree { font: 600 11px/1 var(--font); padding: 4px 7px; border-radius: 6px; background: var(--muted); color: var(--fg-2); }
.exp-row .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--or-text); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* local storage */
.disk { display: grid; gap: 8px; }
.file { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; background: var(--well); border: 1px solid var(--line); font-size: 14px; transform: translateY(var(--rise, 0px)); }
.file .ic { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #F7B267, #D4420B 60%, #6C8CF5); opacity: .85; }
.file .meta { color: var(--fg-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.file .where { font-size: 12px; color: var(--fg-2); padding: 4px 8px; border-radius: 6px; background: var(--muted); white-space: nowrap; }
.cloud-x { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--fg-3); font-size: 13px; padding-top: 6px; }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how .card { overflow: hidden; display: grid; }
.how .shot { height: 260px; overflow: hidden; display: grid; place-items: start center; position: relative;
  background: radial-gradient(240px 160px at 50% 100%, rgba(212,66,11,.12), transparent 70%); }
.how .shot img { display: block; max-width: none; transform: translateY(var(--par, 0px)); }
.how .shot.panel img { width: 100%; height: auto; }
.how .shot.edit img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 55%; transform: translateY(var(--par, 0px)) scale(1.7); transform-origin: 70% 52%; }
.how .shot.exp img { height: auto; width: 86%; margin-top: 36px; border-radius: 12px; box-shadow: var(--sheet-shadow); }
.how .body { padding: 28px 28px 32px; display: grid; gap: 8px; text-align: center; justify-items: center; }
.how .k { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font); color: #fff; background: var(--or); }
.how h3 { font-size: 20px; }
.how p { color: var(--fg-2); font-size: 15px; max-width: 34ch; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { padding: 36px; display: grid; gap: 22px; align-content: start; }
.plan.pro { border-color: rgba(255,122,69,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -30px rgba(212,66,11,.45); }
.plan .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.plan h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font: 700 46px/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.price span { color: var(--fg-2); }
.plan .note { color: var(--fg-3); font-size: 13.5px; margin-top: -12px; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--fg-2); }
.plan li svg { margin-top: 4px; color: var(--fg-3); }
.plan.pro li svg { color: var(--or-text); }
.plan .btn { width: 100%; }
@media (max-width: 520px) { .plan { padding: 24px 20px; } }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--well); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; min-height: 34px; padding: 0 12px; border: 0; background: none; color: var(--fg-2); font: 600 13px/1 var(--font); cursor: pointer; border-radius: 8px; }
.seg button[aria-pressed="true"] { color: var(--fg); }
.seg .thumb { position: absolute; top: 3px; left: 3px; bottom: 3px; width: calc(50% - 3px); border-radius: 8px; background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); box-shadow: inset 0 1px 0 var(--key-hi), var(--key-shadow); }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-3); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 24px 20px; color: var(--fg-2); font-size: 15.5px; display: grid; gap: 10px; max-width: 64ch; }

/* ---------- final cta ---------- */
.final { padding-block: 48px 96px; }
.final .panel { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 88px 24px; background: radial-gradient(500px 260px at 50% 110%, rgba(212,66,11,.28), transparent 70%), var(--card); border: 1px solid var(--line-2); display: grid; gap: 20px; justify-items: center; }
.final h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; max-width: 16ch; position: relative; }
.final p { color: var(--fg-2); position: relative; max-width: 48ch; }
.final .btn, .final .cta-note { position: relative; }
.final canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--fg-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; }
footer a:hover { color: var(--fg); background: var(--muted); }

@media (prefers-reduced-motion: reduce) { .browser { transform: none; } .cursor { display: none; } }
.logo img { height: 17px; width: auto; display: block; }

/* ---------- legal pages ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 14px; border-radius: 10px; background: var(--or); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.legal { padding-block: 56px 96px; }
.legal .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .legal .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.legal-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); background: linear-gradient(180deg, var(--card-2), var(--card) 55%); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
@media (max-width: 900px) { .legal-toc { position: static; } }
.legal-toc > span { display: block; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 34px; padding: 4px 8px; border-radius: 8px; color: var(--fg-2); text-decoration: none; font-size: 14px; line-height: 1.3; }
.legal-toc a::before { content: counter(toc); font: 12px/1 var(--mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: var(--muted); color: var(--fg); }
.legal-toc a[aria-current="true"] { background: var(--or-soft); color: var(--or-text); }
.legal-toc a[aria-current="true"]::before { color: var(--or-text); }
@media (max-width: 900px) { .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .legal-toc ol { grid-template-columns: minmax(0, 1fr); } }

.legal-body { max-width: 720px; min-width: 0; }
.legal-body h1 { font-size: clamp(40px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.042em; font-weight: 700; }
.legal-body .meta { margin-top: 14px; color: var(--fg-3); font: 13px/1.4 var(--mono); }
.legal-body .summary { margin: 32px 0 8px; padding: 24px 26px; border-radius: 20px; border: 1px solid rgba(76,195,138,.28); background: linear-gradient(180deg, rgba(76,195,138,.08), transparent 80%), var(--card); }
.legal-body .summary p { color: var(--fg); margin: 0; }
.legal-body .summary strong { color: var(--ok); }
.legal-body h2 { font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; margin: 56px 0 14px; scroll-margin-top: 100px; }
.legal-body h3 { font-size: 18px; font-weight: 650; margin: 28px 0 10px; }
.legal-body p, .legal-body li { color: var(--fg-2); font-size: 16px; line-height: 1.7; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.legal-body li::marker { color: var(--fg-3); }
.legal-body strong { color: var(--fg); font-weight: 600; }
.legal-body a { color: var(--or-text); text-underline-offset: 3px; }
.legal-body .table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); line-height: 1.55; }
.legal-body th { color: var(--fg); font-weight: 600; background: var(--card-2); }
.legal-body tr:last-child td { border-bottom: 0; }
.placeholder { background: rgba(255,210,63,.13); color: #FFD23F; border-radius: 4px; padding: 0 4px; box-shadow: inset 0 0 0 1px rgba(255,210,63,.3); }

/* ---------- 404 ---------- */
.notfound { padding-block: 120px 140px; text-align: center; display: grid; gap: 20px; justify-items: center; }
.notfound h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.042em; font-weight: 700; max-width: 14ch; }
.notfound p { color: var(--fg-2); font-size: 18px; max-width: 44ch; }
.notfound .code { font: 600 13px/1 var(--mono); color: var(--or-text); padding: 6px 10px; border-radius: 999px; background: var(--or-soft); }
@media (max-width: 520px) { .legal-toc a { min-height: 30px; font-size: 13.5px; } .legal { padding-block: 32px 72px; } }
