/* DevQ website: landing and legal pages (design/ui/screens/09-site/spec.md).
   Tokens are the DevQ brand's; light is the default, dark follows the system
   unless the visitor chose a theme (html[data-theme], set before first paint).
   Every text colour passes WCAG AA on the surface it sits on (scripts/site-check.mjs). */

@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url('fonts/geist-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url('fonts/geist-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url('fonts/geist-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 700; font-display: swap; src: url('fonts/geist-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url('fonts/geist-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url('fonts/geist-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --side: #F7F6FA;
  --surface: #F7F6FA;
  --surface-2: #EFEDF5;
  --border: #E8E6EE;
  --text: #14111C;
  --text-2: #4D4860;
  --text-3: #6B667E;
  --link: #5B3EF0;
  --brand: #6B4EFF;
  --focus: #6B4EFF;
  --danger: #C4232D;
  --ok: #1F7A45;
  --amber: #8A5300;
  --note-bg: #FFF6E0;
  --note-border: #F2DCA6;
  --pic-lime: #F2FCD9;
  --pic-violet: #ECE8FF;
  --ink-border: #14111C;

  /* the same in both themes */
  --lime: #C6F84E;
  --lime-ink: #14111C;
  --amber-dot: #F5B544;
  --ink: #14111C;
  --ink-text: #F4F2FA;
  --ink-text-2: #B6B1C6;
  --panel: radial-gradient(120% 90% at 10% 0%, #8A6FFF 0%, #5A38F2 45%, #3A1EC2 100%);

  --font: 'Geist', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 240ms;
  --dur-4: 320ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0C14; --side: #0A0910; --surface: #17141F; --surface-2: #211D2B; --border: #24202E;
    --text: #F4F2FA; --text-2: #B6B1C6; --text-3: #8C879E; --link: #A893FF; --brand: #8C74FF; --focus: #A893FF;
    --danger: #FF6B6B; --ok: #5BD08A; --amber: #F5B544; --note-bg: #231C0C; --note-border: #4A3A12;
    --pic-lime: #1B2112; --pic-violet: #1C1830; --ink-border: #24202E;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0C14; --side: #0A0910; --surface: #17141F; --surface-2: #211D2B; --border: #24202E;
  --text: #F4F2FA; --text-2: #B6B1C6; --text-3: #8C879E; --link: #A893FF; --brand: #8C74FF; --focus: #A893FF;
  --danger: #FF6B6B; --ok: #5BD08A; --amber: #F5B544; --note-bg: #231C0C; --note-border: #4A3A12;
  --pic-lime: #1B2112; --pic-violet: #1C1830; --ink-border: #24202E;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 80ms; --dur-3: 80ms; --dur-4: 80ms; }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.ic { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; flex: none; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top var(--dur-2) var(--ease-out), outline-color var(--dur-1) ease, outline-offset var(--dur-1) ease;
}
.skip:focus { top: 12px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
/* the focus ring arrives with a short transition instead of popping in (not in forced colours, where a transparent ring would show) */
@media (forced-colors: none) {
  a, button { outline: 2px solid transparent; outline-offset: 0; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
}
/* every link and button changes state with a transition; the rules below add what else moves */
a, button { transition: color var(--dur-1) ease, background-color var(--dur-1) ease, border-color var(--dur-1) ease, opacity var(--dur-1) ease, text-decoration-color var(--dur-1) ease, outline-color var(--dur-1) ease, outline-offset var(--dur-1) ease; }
.on-ink :focus-visible, .on-panel :focus-visible, .on-panel:focus-visible { outline-color: #FFFFFF; }

.link { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border: 1px solid var(--text); border-radius: 8px; background: var(--text); color: var(--bg);
  font: 600 13.5px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: opacity var(--dur-1) ease, background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease, transform var(--dur-1) var(--ease-out), outline-color var(--dur-1) ease, outline-offset var(--dur-1) ease;
}
.btn:hover { opacity: .86; }
.btn:active { transform: scale(.98); }
.btn.lg { height: 44px; font-size: 15px; }
.btn.outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn.outline:hover { opacity: 1; background: var(--surface); }
.btn.lime { height: 48px; padding: 0 20px; border-radius: 9px; border-color: var(--lime); background: var(--lime); color: var(--lime-ink); font-size: 15.5px; font-weight: 700; }
.btn.lime:hover { opacity: 1; background: #D4FB6E; border-color: #D4FB6E; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* ---------- header ---------- */

.top { border-bottom: 1px solid var(--border); }
.top .wrap { height: 72px; display: flex; align-items: center; gap: 36px; }
.logo { display: inline-flex; flex: none; border-radius: 4px; }
.logo img { height: 24px; width: auto; }
.logo .for-dark, .logo.sm .for-dark { display: none; }
.logo.sm img { height: 18px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .for-light { display: none; }
  :root:not([data-theme="light"]) .logo .for-dark { display: block; }
}
:root[data-theme="dark"] .logo .for-light { display: none; }
:root[data-theme="dark"] .logo .for-dark { display: block; }

.nav { display: flex; gap: 28px; margin-left: 12px; }
.nav a { font-size: 14px; font-weight: 550; color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.top .spacer { flex: 1; }
.top .signin { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.top .signin:hover { text-decoration-color: currentColor; }

.theme-btn {
  width: 34px; height: 34px; flex: none; padding: 0; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, border-color var(--dur-1) ease, outline-color var(--dur-1) ease, outline-offset var(--dur-1) ease;
}
.theme-btn:hover { background: var(--surface); color: var(--text); }
/* the moon and the sun trade places: one fades and turns out as the other comes in */
.theme-btn svg { position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out); }
.theme-btn .sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
}
:root[data-theme="dark"] .theme-btn .sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
@media (prefers-reduced-motion: reduce) { .theme-btn svg { transform: none !important; transition: opacity var(--dur-2) ease; } }

@media (max-width: 900px) {
  .top .wrap { gap: 16px; height: 64px; }
  .nav { display: none; }
}
@media (max-width: 479px) {
  .top .wrap { gap: 12px; }
  .top .btn .wide { display: none; }
}

/* ---------- hero ---------- */

.hero { padding-top: 84px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px 4px 6px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 13px; line-height: 1.3; font-weight: 550; color: var(--text-2); text-decoration: none;
  transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease, outline-color var(--dur-1) ease, outline-offset var(--dur-1) ease;
}
.pill:hover { background: var(--surface); }
.pill .tag { height: 20px; padding: 0 8px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; }
.pill svg { width: 14px; height: 14px; color: var(--text-3); }
.hero h1 {
  margin: 22px 0 0; max-width: 900px; font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4rem); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.035em; text-wrap: balance;
}
.hero .lede { margin: 22px 0 0; max-width: 640px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hero .fine { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }

/* ---------- brand panels and the pictures inside ---------- */

.panel { background: var(--panel); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.window { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(20, 8, 70, .45), 0 0 0 1px rgba(255, 255, 255, .12); }
.hero .panel { margin-top: 56px; width: 100%; min-height: 640px; border-radius: 24px; padding: 40px 16px; }
.hero .panel .ghost { position: absolute; right: -80px; bottom: -120px; width: 520px; height: 520px; opacity: .14; pointer-events: none; }

@media (max-width: 899px) { .hero { padding-top: 56px; } .hero .panel { min-height: 0; border-radius: 20px; } .hero .mock { --s: .74; } .hero .panel .ghost { width: 360px; height: 360px; right: -60px; bottom: -90px; } }
@media (max-width: 679px) { .hero .panel { padding: 28px 16px; margin-top: 40px; } .hero .mock { --s: .52; } .window { border-radius: 8px; } }
@media (max-width: 479px) { .hero .panel { padding: 20px 12px; border-radius: 16px; } .hero .mock { --s: .37; } }

/* ---------- works with ---------- */

.works { padding-top: 56px; }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 40px; color: var(--text-3); font-size: 15px; font-weight: 600; }
.works .label { font-size: 13px; font-weight: 550; }
@media (max-width: 679px) { .works ul { gap: 8px 22px; font-size: 14px; } .works .label { flex-basis: 100%; text-align: center; } }

/* ---------- sections ---------- */

.section { padding-top: 120px; }
.kicker { display: block; margin: 0; font-size: 13px; font-weight: 650; color: var(--link); letter-spacing: .01em; }
.h2 { margin: 10px 0 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.028em; text-wrap: balance; }
@media (max-width: 899px) { .section { padding-top: 80px; } }

/* QA Review row */
.qa-row { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 60px; align-items: center; }
.qa-row .body > p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.checks svg { width: 16px; height: 16px; margin-top: 3px; color: var(--text); stroke-width: 2.2; }
.qa-row .panel { height: 520px; border-radius: 20px; padding: 20px 16px; }
.qa-row .window { border-radius: 10px; box-shadow: 0 30px 80px rgba(20, 8, 70, .45), 0 0 0 1px rgba(255, 255, 255, .5); }
.qa-row .mock { --s: .38; }
@media (max-width: 1099px) {
  .qa-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .qa-row .body { max-width: 620px; }
  .qa-row .panel { height: auto; padding: 48px 16px; }
}
@media (max-width: 679px) { .qa-row .panel { padding: 28px 16px; } .qa-row .mock { --s: .28; } }
@media (max-width: 479px) { .qa-row .panel { padding: 20px 12px; border-radius: 16px; } .qa-row .mock { --s: .2; } }

/* the three jobs */
.jobs-head { max-width: 620px; }
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.job { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--bg); transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease; }
.job:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--text-3) 45%, var(--border)); }
@media (prefers-reduced-motion: reduce) { .job:hover { transform: none; } }
.job .pic { height: 300px; padding-top: 28px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.job .pic.violet { background: var(--panel); }
.job .pic.lime { background: var(--pic-lime); }
.job .pic.soft { background: var(--pic-violet); }
.job .window { border-radius: 10px 10px 0 0; box-shadow: 0 20px 50px rgba(20, 8, 70, .35); }
.job .pic.lime .window { box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.job .pic.soft .window { box-shadow: 0 20px 50px rgba(20, 8, 70, .2); }
.job .mock { --s: .42; }
.job .mock.admin { --s: .25; }
.job .text { padding: 22px 24px 26px; }
.job h3 { margin: 8px 0 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.018em; }
.job p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 1099px) { .jobs { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* private by default */
.band { border-radius: 24px; background: var(--ink); border: 1px solid var(--ink-border); padding: 56px 56px 60px; color: var(--ink-text); }
.band .kicker { color: var(--lime); }
.band .h2 { max-width: 640px; color: var(--ink-text); }
.band .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 40px; }
.band .tile { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: var(--lime); }
.band .tile svg { width: 19px; height: 19px; }
.band h3 { margin: 18px 0 0; font-size: 18px; line-height: 1.3; font-weight: 650; color: var(--ink-text); }
.band .cols p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-text-2); }
.band .more { margin: 36px 0 0; font-size: 14.5px; color: var(--ink-text-2); }
.band .more a { color: var(--lime); font-weight: 600; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.band .more a:hover { text-decoration-color: currentColor; }
@media (max-width: 899px) { .band { padding: 40px 28px 44px; } .band .cols { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 479px) { .band { padding: 32px 20px 36px; border-radius: 18px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 80px; align-items: start; }
.faq .intro p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.faq-list { border-top: 1px solid var(--border); }
.qa { border-bottom: 1px solid var(--border); }
.qa h3 { margin: 0; font: inherit; }
.qa button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 0; border: 0; background: transparent; color: var(--text);
  font: 600 16px/1.4 var(--font); text-align: left; cursor: pointer;
}
.qa button > span:first-child { flex: 1; }
.qa .sign { position: relative; width: 18px; height: 18px; flex: none; color: var(--text-3); transition: color var(--dur-1) ease; }
.qa button:hover .sign { color: var(--text); }
.qa .sign svg { position: absolute; inset: 0; width: 18px; height: 18px; transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out); }
.qa .sign .chev { opacity: 0; transform: rotate(-90deg); }
.qa button[aria-expanded="true"] .sign .plus { opacity: 0; transform: rotate(90deg); }
.qa button[aria-expanded="true"] .sign .chev { opacity: 1; transform: none; }
.qa .a p { margin: 0; padding: 0 30px 18px 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.qa .a code { font-family: var(--mono); font-size: .9em; }
/* closed only when the script that opens them is there */
.js .qa .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-in-out); }
.js .qa .a > div { min-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity var(--dur-2) ease, visibility 0s linear var(--dur-3); }
.js .qa.open .a { grid-template-rows: 1fr; }
.js .qa.open .a > div { visibility: visible; opacity: 1; transition: opacity var(--dur-2) ease 60ms, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .qa .sign svg { transition: opacity var(--dur-2) ease; transform: none !important; } }
@media (max-width: 899px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* closing call */
.cta { border-radius: 24px; padding: 64px; justify-content: flex-start; gap: 40px; color: #FFFFFF; }
.cta .words { flex: 1; min-width: 0; position: relative; }
.cta h2 { margin: 0; font-size: clamp(1.875rem, 1.4rem + 1.7vw, 2.5rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: #FFFFFF; }
.cta p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: #FFFFFF; }
.cta .soon { margin-top: 10px; font-size: 14px; font-weight: 500; }
.cta .btn { position: relative; flex: none; }
@media (max-width: 899px) { .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; gap: 28px; } }
@media (max-width: 479px) { .cta { padding: 32px 20px; border-radius: 18px; } .cta .btn { width: 100%; } }

/* ---------- footer ---------- */

.foot { margin-top: 80px; border-top: 1px solid var(--border); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-block: 28px; font-size: 13.5px; color: var(--text-3); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-left: auto; }
.foot a:not(.logo) { color: var(--text-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.foot a:not(.logo):hover { color: var(--text); text-decoration-color: currentColor; }
@media (max-width: 679px) { .foot nav { margin-left: 0; flex-basis: 100%; } }

/* ---------- sections arrive once (site.js adds .in) ---------- */

.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity var(--dur-4) var(--ease-out), transform 480ms var(--ease-out); }
/* a card that arrived keeps its own hover (the lift) */
.js .job.reveal.in { transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease; }
/* the legal pages: each section (a heading and what follows it) arrives together, once */
.js .doc.sections > * { opacity: 0; transform: translateY(12px); }
.js .doc.sections > .in { opacity: 1; transform: none; transition: opacity var(--dur-4) var(--ease-out), transform 480ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .doc.sections > * { transform: none; }
  .js .reveal.in, .js .doc.sections > .in, .js .job.reveal.in { transition: opacity var(--dur-4) ease; }
}
@media print { .js .reveal, .js .doc.sections > * { opacity: 1 !important; transform: none !important; } }

/* ---------- legal pages ---------- */

.legal { display: grid; grid-template-columns: 240px minmax(0, 680px); gap: 80px; padding-top: 64px; align-items: start; }
.toc { position: sticky; top: 24px; padding-top: 8px; max-height: calc(100vh - 48px); overflow-y: auto; }
.toc .label { margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--text-3); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol a {
  display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border); font-size: 13.5px; line-height: 1.5; font-weight: 500;
  color: var(--text-3); text-decoration: none; transition: color var(--dur-1) ease, border-color var(--dur-2) ease, outline-color var(--dur-1) ease, outline-offset var(--dur-1) ease;
}
.toc ol a:hover { color: var(--text); }
.toc ol a[aria-current] { border-left-color: var(--brand); color: var(--text); font-weight: 600; }
.toc .also { margin: 24px 0 0; font-size: 13px; color: var(--text-3); }
.toc .also a { color: var(--link); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.toc .also a:hover { text-decoration-color: currentColor; }

.doc .updated { margin: 0; font-size: 13px; color: var(--text-3); }
.doc h1 { margin: 8px 0 0; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.doc h2 { margin: 40px 0 0; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.018em; scroll-margin-top: 24px; }
.doc p, .doc li, .doc td { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.doc p { margin: 12px 0 0; }
.doc ul { margin: 12px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc b, .doc strong { font-weight: 650; color: var(--text); }
.doc a { color: var(--link); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.doc a:hover { text-decoration-color: currentColor; }
.doc code { font-family: var(--mono); font-size: .875em; padding: 1px 5px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.short { margin-top: 28px; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.short .title { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 650; color: var(--text); }
.short .checks { margin-top: 10px; padding-left: 0; }
.short .checks li { margin: 0; font-size: 15px; line-height: 1.45; }
.draft { margin-top: 16px !important; padding: 12px 16px; border-radius: 12px; background: var(--note-bg); border: 1px solid var(--note-border); font-size: 14.5px !important; line-height: 1.55 !important; color: var(--text) !important; }

.doc table { width: 100%; margin-top: 16px; border-collapse: collapse; }
.doc th { padding: 0 16px 8px 0; text-align: left; font-size: 12px; font-weight: 650; color: var(--text-3); border-bottom: 1px solid var(--border); }
.doc td { padding: 14px 16px 14px 0; vertical-align: top; font-size: 14.5px; line-height: 1.6; border-bottom: 1px solid var(--border); }
.doc td:first-child { color: var(--text); width: 40%; }
.doc td:last-child, .doc th:last-child { padding-right: 0; }

@media (max-width: 999px) {
  .legal { grid-template-columns: minmax(0, 680px); gap: 28px; padding-top: 40px; justify-content: center; }
  .toc { position: static; max-height: none; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; }
  .toc .also { margin-top: 14px; }
}
@media (max-width: 679px) {
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: auto; }
  .doc tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .doc td { padding: 0; border: 0; }
  .doc td:first-child { width: auto; }
  .doc td + td { margin-top: 8px; }
  .doc td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 650; color: var(--text-3); }
}
