:root {
  color-scheme: light dark;
  --bg: #f4f1e8;
  --surface: #fbfaf5;
  --text: #1a2421;
  --muted: #57635f;
  --line: #c8cec8;
  --accent: #0f6b55;
  --accent-soft: #d7e9df;
  --code-bg: #e6e9e3;
  --shadow: 0 18px 45px rgb(35 49 43 / 8%);
  --radius: 1rem;
  --shell: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 18rem;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  outline: 0.2rem solid var(--accent);
  outline-offset: 0.25rem;
  border-radius: 0.15rem;
}

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

h1,
h2 {
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 650;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

code {
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  background: var(--code-bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 9vw, 7rem);
}

.eyebrow,
.step {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 46rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pills span {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.panel {
  min-height: 23rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.panel p:not(.step) {
  color: var(--muted);
}

.statement,
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.statement {
  border-bottom: 1px solid var(--line);
}

.statement > div:last-child,
.contact-card > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-card {
  align-items: center;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin-top: 1.5rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding-block: clamp(4rem, 10vw, 8rem);
}

.legal-intro {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.legal-intro h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.policy-meta {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.policy-meta div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.policy-meta dt {
  color: var(--muted);
}

.policy-meta dd {
  margin: 0;
  font-weight: 620;
}

.legal-copy {
  min-width: 0;
}

.legal-copy section {
  padding-block: 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy ul {
  padding-left: 1.25rem;
}

.legal-copy li + li {
  margin-top: 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-page {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding-block: 4rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 7rem);
}

@media (max-width: 50rem) {
  .content-grid,
  .statement,
  .contact-card,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
  }

  .legal-intro {
    position: static;
  }
}

@media (max-width: 38rem) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  h1 {
    overflow-wrap: anywhere;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151719;
    --surface: #1d211f;
    --text: #edf3ef;
    --muted: #aab7b1;
    --line: #3a4440;
    --accent: #83d9bc;
    --accent-soft: #234b3d;
    --code-bg: #29312e;
    --shadow: none;
  }
}
