:root {
  color-scheme: dark;
  --void: #060708;
  --surface: #0e1013;
  --surface-2: #14171b;
  --border: #23272d;
  --border-soft: #1a1e23;
  --text: #f2f3f4;
  --text-dim: #9298a2;
  --text-faint: #7f8791;
  --ember: #f4692e;
  --ember-bright: #ff9257;
  --ice: #3ecfe0;
  --ice-dim: #368c98;
  --prose: #c9ced6;
  --grid: rgba(255, 255, 255, 0.022);
}

* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html { scroll-behavior: smooth; background: var(--void); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, black 38%, transparent 100%);
}
::selection { background: var(--ember); color: #180a03; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; border-radius: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(6, 7, 8, 0.88);
  backdrop-filter: blur(12px);
}
.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-name {
  font-family: "Bakbak One", "Archivo", sans-serif;
  font-size: 19px;
  line-height: 1;
  letter-spacing: .03em;
}
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a[aria-current="page"] { color: var(--ember-bright); }

.layout {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 730px);
  gap: clamp(44px, 8vw, 96px);
  align-items: start;
  padding: 72px 0 96px;
}
.toc {
  position: sticky;
  top: 96px;
  padding-top: 8px;
}
.toc-label, .eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--ember);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: section; }
.toc li { counter-increment: section; border-top: 1px solid var(--border-soft); }
.toc li:last-child { border-bottom: 1px solid var(--border-soft); }
.toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 9px 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}
.toc a::before {
  content: counter(section, decimal-leading-zero);
  color: var(--ice-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  padding-top: 2px;
}
.toc a:hover { color: var(--text); }

.legal-header { padding-bottom: 44px; border-bottom: 1px solid var(--border); }
h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "wdth" 106;
}
.summary { margin: 0; max-width: 650px; color: var(--text-dim); font-size: 17px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 24px;
  color: var(--text-faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.meta strong { color: var(--ice); font-weight: 500; }
.notice {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ember);
  border-radius: 8px;
  background: var(--surface);
  color: var(--prose);
  font-size: 14px;
}

section { padding: 54px 0 0; scroll-margin-top: 80px; }
.section-number {
  display: block;
  margin-bottom: 10px;
  color: var(--ember);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-variation-settings: "wdth" 104;
}
h3 { margin: 30px 0 10px; font-size: 18px; line-height: 1.25; }
p { margin: 0 0 17px; color: var(--prose); }
ul, ol { margin: 0 0 20px; padding-left: 23px; color: var(--prose); }
li { margin: 8px 0; padding-left: 4px; }
strong { color: var(--text); }
.caps { font-size: 13px; letter-spacing: .018em; }
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; min-width: 660px; border-collapse: collapse; background: var(--surface); font-size: 13px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; color: var(--prose); }
th { color: var(--text); font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .04em;
}
.footer-inner a { color: var(--text-dim); }

@media (max-width: 900px) {
  .nav .brand, .nav-links a, .footer-inner a, .footer-inner button[data-cookie-settings] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    vertical-align: middle;
  }
  .toc a { min-height: 44px; align-items: center; }
}

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; padding-top: 48px; }
  .toc { display: none; }
}
@media (max-width: 560px) {
  .nav { width: min(100% - 28px, 1120px); min-height: 58px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 9.5px; }
  .layout, .footer-inner { width: min(100% - 28px, 1120px); }
  .layout { padding-bottom: 72px; }
  .legal-header { padding-bottom: 36px; }
  section { padding-top: 46px; }
  .footer-inner { flex-direction: column; }
}
