@font-face {
  font-family: "Haffer";
  src: url("/fonts/Haffer-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Bogue";
  src: url("/fonts/Bogue-Thin.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #151518;
  --surface: #1d1d21;
  --text: #f4f4f4;
  --muted: #b9b9bd;
  --quiet: #838389;
  --border: rgba(255, 255, 255, 0.14);
  --orange: #f46f42;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 0;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 48px,
    var(--background);
  color: var(--text);
  font-family: "Haffer", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(21, 21, 24, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.legal-brand img {
  width: 30px;
  height: 30px;
}

.legal-nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.legal-nav__links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.legal-nav__links a:hover,
.legal-nav__links a:focus-visible {
  color: var(--text);
}

.legal-nav__links .legal-apply {
  padding: 10px 14px;
  background: var(--orange);
  border-radius: 5px;
  color: #171717;
  font-weight: 600;
}

.legal-page {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 88px 0 110px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--border);
}

.legal-eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-family: "Bogue", Georgia, serif;
  font-size: clamp(54px, 7vw, 94px);
  font-weight: 300;
  line-height: 0.95;
}

.legal-summary {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.legal-content {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: 70px;
  justify-content: space-between;
  padding-top: 58px;
}

.legal-index {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.legal-index a {
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  color: var(--text);
}

.legal-sections section {
  padding: 0 0 42px;
}

.legal-sections h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.legal-sections p,
.legal-sections li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-sections p {
  margin: 0 0 14px;
}

.legal-sections ul {
  margin: 0;
  padding-left: 20px;
}

.legal-sections strong {
  color: var(--text);
  font-weight: 500;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 5vw;
  border-top: 1px solid var(--border);
  color: var(--quiet);
  font-size: 12px;
}

.legal-footer p {
  margin: 0;
}

.legal-footer__links {
  display: flex;
  gap: 18px;
}

@media (max-width: 760px) {
  .legal-nav {
    min-height: 62px;
  }

  .legal-nav__links a:not(.legal-apply) {
    display: none;
  }

  .legal-page {
    padding: 58px 0 80px;
  }

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

  .legal-hero {
    gap: 26px;
    padding-bottom: 38px;
  }

  .legal-hero h1 {
    font-size: clamp(42px, 13vw, 52px);
    white-space: nowrap;
  }

  .legal-content {
    gap: 38px;
    padding-top: 40px;
  }

  .legal-sections h2 {
    font-size: clamp(18px, 5vw, 20px);
  }

  .legal-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }

  .legal-footer {
    flex-direction: column;
  }
}
