:root {
  color-scheme: dark;
  --paper: #000;
  --text: rgba(255, 255, 255, .6);
  --text-strong: rgba(255, 255, 255, .9);
  --line: rgba(255, 255, 255, .14);
  --accent: #c1ff33;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: rgba(255, 255, 255, .82);
  text-decoration-color: rgba(193, 255, 51, .55);
  text-underline-offset: .18em;
  transition: color .18s ease, text-decoration-color .18s ease;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #000;
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.hero,
.page-shell,
.site-footer {
  width: 100%;
  background: transparent;
}

.header-inner,
.hero-grid,
.page-shell,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header { padding-top: 48px; }

.header-inner {
  display: flex;
  align-items: center;
  min-height: 50px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 152px;
  height: auto;
}

.hero { padding: 34px 0 6px; }

.hero-grid {
  display: block;
  padding-left: 320px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font: 800 24px/32px ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.015em;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 720px;
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
}

.doc-stamp {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
}

.doc-stamp strong { display: none; }

.page-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 800px);
  gap: 72px;
  justify-content: start;
  align-items: start;
  padding: 14px 0 72px;
}

.page-shell > nav.toc {
  position: sticky;
  top: 24px;
  display: block;
  max-height: calc(100vh - 48px);
  padding: 18px 18px 18px 20px;
  overflow: auto;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  line-height: 1.45;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  scrollbar-width: thin;
}

.page-shell > nav.toc .toc-title {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-shell > nav.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-shell > nav.toc ul ul {
  margin: 8px 0 10px 3px;
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.page-shell > nav.toc li { margin: 8px 0; }

.page-shell > nav.toc a {
  display: block;
  color: rgba(255, 255, 255, .48);
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.page-shell > nav.toc a:hover,
.page-shell > nav.toc a:focus-visible {
  color: rgba(255, 255, 255, .9);
  transform: translateX(2px);
}

.legal-card {
  min-width: 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-doc {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.legal-doc > h1:first-child { display: none; }

.legal-doc h1,
.legal-doc h2,
.legal-doc h3,
.legal-doc h4 {
  color: var(--text-strong);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-margin-top: 24px;
}

.legal-doc h1 {
  margin: 46px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.legal-doc h2 {
  margin: 30px 0 10px;
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
}

.legal-doc > h1:first-child + h2 {
  margin-top: 0;
  padding-top: 0;
}

.legal-doc h3,
.legal-doc h4 {
  margin: 26px 0 8px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
}

.legal-doc p {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 28px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 6px 0 22px;
  padding-left: 40px;
}

.legal-doc li {
  margin: 4px 0;
  padding-left: 0;
}

.legal-doc li::marker { color: rgba(255, 255, 255, .55); }

.legal-doc li > p { margin-bottom: 4px; }

.legal-doc strong { color: rgba(255, 255, 255, .78); }

.legal-doc em { color: rgba(255, 255, 255, .7); }

.site-footer { padding: 0 0 54px; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 980px) {
  .header-inner,
  .hero-grid,
  .page-shell,
  .footer-inner {
    width: min(800px, calc(100% - 48px));
  }

  .hero-grid { padding-left: 0; }

  .page-shell { display: block; }

  .page-shell > nav.toc {
    position: relative;
    top: auto;
    max-height: 300px;
    margin-bottom: 48px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
  }
}

@media (max-width: 640px) {
  body { font-size: 18px; }

  .header-inner,
  .hero-grid,
  .page-shell,
  .footer-inner {
    width: min(100% - 36px, 800px);
  }

  .site-header { padding-top: 28px; }
  .brand img { width: 132px; }
  .hero { padding-top: 28px; }
  .hero-copy,
  .doc-stamp,
  .legal-doc p { font-size: 18px; line-height: 28px; }
  .legal-doc ul,
  .legal-doc ol { padding-left: 27px; }
  .page-shell { padding-bottom: 54px; }
  .footer-inner { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
