@font-face {
  font-family: "Onest";
  src: url("/assets/onest.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #08090b;
  --surface: #111216;
  --surface-raised: #17181d;
  --text: #f7f7f4;
  --muted: #a1a3aa;
  --line: #2a2c32;
  --accent: #ffd400;
  --accent-ink: #171300;
  --page-width: 760px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -18rem, rgba(255, 212, 0, 0.2), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 212, 0, 0.6);
  text-underline-offset: 0.18em;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 11, 0.84);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(calc(100% - 40px), 1080px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.hero,
.document {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 73px);
  padding: 96px 0 72px;
  display: grid;
  align-content: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(46px, 10vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero__lede {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(19px, 3.4vw, 24px);
  line-height: 1.45;
}

.trust-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 18, 22, 0.82);
}

.trust-line__mark {
  width: 14px;
  height: 14px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(255, 212, 0, 0.12);
}

.trust-line strong,
.trust-line span {
  display: block;
}

.trust-line span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.legal-card {
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 212, 0, 0.5);
  background: var(--surface-raised);
}

.legal-card__label {
  display: block;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.document {
  padding: 86px 0 120px;
}

.document__intro {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.document h1 {
  font-size: clamp(42px, 8vw, 66px);
}

.document__summary {
  max-width: 650px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 20px;
}

.updated {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.document__body {
  padding-top: 28px;
}

.document section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.document section:last-child {
  border-bottom: 0;
}

.document h2 {
  margin-bottom: 14px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.document h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.document p,
.document li {
  color: #d0d1d5;
}

.document ul {
  margin: 14px 0 0;
  padding-left: 1.3em;
}

.document li + li {
  margin-top: 9px;
}

.callout {
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 212, 0, 0.08);
}

.callout p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer__inner {
  width: min(calc(100% - 40px), 1080px);
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: 64px;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 76px 0 84px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .document {
    padding-top: 64px;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .legal-card {
    transition: none;
  }
}
