:root {
  --black: #000;
  --panel: #0a0a0d;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7; 
  --grey: #86868b;
  --line: rgba(255, 255, 255, 0.1);
  --link: #2997ff;
  --shell: 980px;
  --measure: 692px;
  color-scheme: dark;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── chrome ─────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 20;
  height: 48px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--shell); height: 100%; margin: 0 auto;
  padding: 0 22px;
  display: flex; align-items: center; gap: 14px;
}
.nav-mark { display: flex; align-items: center; gap: 9px; }
.nav-mark img { width: 20px; height: 20px; border-radius: 5px; }
.nav-name {
  text-transform: uppercase;  
  font-size: 14px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
}
.nav-links { margin-left: auto; display: flex; gap: 22px; }
.nav-links a {
  font-size: 12px; color: var(--grey);
  padding: 15px 4px;
  margin: -15px -4px;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ── sections ───────────────────────────────────────── */

section { padding: clamp(72px, 11vw, 132px) 22px; }
.shell { max-width: var(--shell); margin: 0 auto; }
.measure { max-width: var(--measure); margin: 0 auto; }
@media (min-width: 700px) and (max-width: 939.98px) {
  .doc .measure,
  footer .measure { max-width: 620px; }
}
.panel { background: var(--panel); }
.center { text-align: center; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; }

h1 { font-size: clamp(44px, 8.4vw, 84px); }
h2 { font-size: clamp(32px, 5.2vw, 52px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }

.lede {
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.35; letter-spacing: -0.015em;
  color: var(--grey); font-weight: 500;
}

.sub { color: var(--grey); font-size: 17px; line-height: 1.55; }

/* ── footer ─────────────────────────────────────────── */

footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 34px 22px 46px;
  font-size: 12px; color: var(--grey);
}
footer .shell { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer a { color: var(--grey); }
footer a:hover { color: var(--ink); text-decoration: none; }
footer .spacer { margin-left: auto; }

/* ── legal documents ────────────────────────────────── */

.doc { padding-top: clamp(56px, 8vw, 88px); }
.doc h1 { font-size: clamp(36px, 5.6vw, 56px); margin-bottom: 20px; }
.doc .stamp {
  color: var(--grey); font-size: 15px;
  padding-bottom: 34px; margin-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.doc h2 {
  font-size: 29px; letter-spacing: -0.02em;
  margin: 68px 0 18px; scroll-margin-top: 76px;
}

.doc h3 {
  font-size: 21px; letter-spacing: -0.015em;
  margin: 40px 0 12px; scroll-margin-top: 76px;
}
.doc h2 + h3 { margin-top: 26px; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.doc p + p { margin-top: 17px; }
.doc ul { margin: 18px 0 0; padding-left: 22px; }
.doc li { margin-bottom: 12px; }
.doc li::marker { color: var(--grey); }
.doc strong { color: var(--ink); font-weight: 600; }

.toc {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px; margin-bottom: 52px;
}
.toc p {
  font-size: 12px; font-weight: 600; color: var(--grey);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
}
.toc ol { margin: 0; padding-left: 19px; }
.toc li { font-size: 15px; margin-bottom: 6px; color: var(--grey); }
.toc a { color: var(--ink); }

.callout {
  background: rgba(41, 151, 255, 0.09);
  border: 1px solid rgba(41, 151, 255, 0.22);
  border-radius: 16px; padding: 26px 28px; margin: 34px 0 8px;
}
.callout p { color: var(--ink); font-size: 16px; }

.contact {
  margin-top: 72px; padding-top: 34px;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── legal-only ─────────────────────────────────────── */

.nav-links a.on { color: var(--ink); }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

footer .measure { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }

@media (min-width: 940px) {
  .doc.with-toc ~ footer .measure,
  footer .measure { max-width: 976px; }
}

@media (min-width: 940px) {
  .doc.with-toc .measure {
    max-width: 976px;
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
  }
  .doc.with-toc .toc {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 68px;
    margin-bottom: 0;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .doc.with-toc .doc-body { grid-column: 2; grid-row: 1; min-width: 0; }
  .doc.with-toc h1 { margin-top: -6px; }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 16px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
th {
  color: var(--grey);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
td a { overflow-wrap: anywhere; }

@media (max-width: 620px) {
  table, tbody, tr, td { display: block; }
  thead, tr:first-child:has(th) { display: none; }
  th { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  td { border: 0; padding: 5px 0 5px 0; }
  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--grey); margin-bottom: 2px;
  }
  td:first-child { color: var(--ink); font-weight: 600; }
}
footer .measure > span { text-transform: uppercase; }
