:root {
  --ink: #26191f;
  --ink-soft: #625158;
  --plum: #210d20;
  --plum-raised: #35142f;
  --cream: #f7efdf;
  --paper: #fffaf0;
  --gold: #e3aa42;
  --gold-light: #f6d58a;
  --saffron: #e86f2b;
  --rose: #a94f61;
  --line: rgba(38, 25, 31, 0.16);
  --shadow: 0 30px 80px rgba(27, 10, 25, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--plum);
  border-radius: 999px;
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid currentColor;
}

.home .site-header {
  color: rgba(255, 250, 240, 0.78);
  border-color: rgba(255, 250, 240, 0.2);
}

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

.brand img {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.brand-name small {
  margin-left: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.68;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--saffron);
}

.home {
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 111, 43, 0.22), transparent 26rem),
    radial-gradient(circle at 18% 88%, rgba(169, 79, 97, 0.22), transparent 30rem),
    var(--plum);
}

.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 250, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 94px);
  margin: 0 auto;
  padding: 78px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 76px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 7.6vw, 112px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero h1 em {
  color: var(--gold);
  font-weight: 400;
}

.hero-copy {
  max-width: 610px;
  margin: 34px 0 0;
  color: rgba(255, 250, 240, 0.7);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 240, 0.38);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button.primary {
  color: var(--plum);
  background: var(--gold);
  border-color: var(--gold);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  color: var(--plum);
  background: var(--paper);
}

.support-card {
  position: relative;
  padding: 42px 36px 38px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: 16px 16px 0 var(--gold), var(--shadow);
  transform: rotate(1.2deg);
}

.support-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 88px;
  height: 28px;
  background: rgba(246, 213, 138, 0.72);
  transform: translateX(-50%) rotate(-1.5deg);
}

.support-card h2 {
  margin: 4px 0 18px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.support-card p:not(.eyebrow) {
  color: var(--ink-soft);
}

.support-card .eyebrow {
  margin-bottom: 18px;
  color: var(--rose);
}

.support-card a {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-underline-offset: 4px;
}

.home-footer {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 250, 240, 0.48);
  border-top: 1px solid rgba(255, 250, 240, 0.18);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 0%, rgba(227, 170, 66, 0.18), transparent 30rem),
    var(--cream);
}

.legal-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.effective-date {
  padding: 12px 16px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 90px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 70px;
  justify-content: center;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding-top: 6px;
}

.toc p {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--rose);
}

.legal-document {
  padding: 54px 62px 66px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-document .intro {
  margin: 0 0 52px;
  padding-bottom: 38px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
}

.legal-document section {
  scroll-margin-top: 28px;
  margin-top: 50px;
}

.legal-document section:first-of-type {
  margin-top: 0;
}

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.legal-document h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.legal-document p,
.legal-document li {
  color: #55464d;
  font-size: 15px;
}

.legal-document ul {
  padding-left: 20px;
}

.legal-document li {
  margin: 7px 0;
  padding-left: 5px;
}

.legal-document a {
  color: #783748;
  text-underline-offset: 3px;
}

.legal-footer {
  color: rgba(255, 250, 240, 0.72);
  background: var(--plum);
}

.legal-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.legal-footer h2 {
  margin: 6px 0 10px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
}

.legal-footer p {
  margin: 0;
}

.legal-footer .eyebrow {
  margin: 0;
}

.legal-footer a {
  color: var(--gold-light);
  font-family: var(--mono);
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .brand-name small {
    display: none;
  }

  .hero {
    padding-top: 58px;
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .support-card {
    max-width: 460px;
    margin-bottom: 34px;
  }

  .legal-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .effective-date {
    justify-self: start;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toc {
    position: static;
    columns: 2;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    padding-top: 20px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 9px;
  }

  .hero,
  .legal-hero,
  .legal-layout,
  .home-footer,
  .legal-footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(49px, 16vw, 74px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .support-card {
    padding: 38px 26px 32px;
    box-shadow: 9px 9px 0 var(--gold), var(--shadow);
  }

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

  .legal-hero {
    padding: 58px 0 42px;
  }

  .legal-hero h1 {
    font-size: 56px;
  }

  .toc {
    column-gap: 24px;
  }

  .legal-document {
    padding: 38px 24px 48px;
  }

  .legal-document .intro {
    font-size: 21px;
  }

  .legal-document h2 {
    font-size: 28px;
  }

  .legal-footer-inner {
    align-items: start;
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}
