:root {
  color-scheme: light;
  --canvas: #f3eee4;
  --raised: #faf7f0;
  --floating: #fffdf8;
  --ink: #1b2420;
  --secondary: #56635d;
  --muted: #7b847f;
  --line: #d9d1c2;
  --accent: #2f5d50;
  --accent-soft: #dce8e1;
  --warning: #8a5d29;
  --max: 1120px;
  --reading: 720px;
  --radius: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(47, 93, 80, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 93, 80, 0.035) 1px, transparent 1px),
    var(--canvas);
  background-size: 28px 28px;
  font-family: Avenir Next, Avenir, Corbel, Helvetica Neue, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(47, 93, 80, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 209, 194, 0.86);
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--floating);
  background: var(--accent);
  font-family: Georgia, Times New Roman, serif;
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

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

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

.hero {
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 64px;
  padding: 90px 0 68px;
  border-bottom: 1px solid var(--line);
}

.document-hero {
  padding: 76px 0 44px;
  border-bottom: 1px solid var(--line);
}

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

h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.document-hero h1 { font-size: clamp(40px, 6vw, 66px); }

h2 {
  margin-bottom: 14px;
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

p { margin: 0 0 18px; }
ul, ol { margin: 0 0 20px; padding-left: 1.25em; }
li + li { margin-top: 7px; }

.lede {
  max-width: 670px;
  color: var(--secondary);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-note {
  padding: 24px 0 4px 24px;
  border-left: 1px solid var(--accent);
  color: var(--secondary);
  font-size: 15px;
}

.hero-note strong { display: block; margin-bottom: 6px; color: var(--ink); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.page-grid {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, var(--reading));
  gap: 72px;
  justify-content: start;
  padding: 50px 0 100px;
}

.toc {
  position: sticky;
  top: 102px;
  align-self: start;
  font-size: 13px;
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  min-height: 36px;
  color: var(--secondary);
  text-decoration: none;
}

.toc a:hover { color: var(--accent); }

.legal-copy section {
  scroll-margin-top: 100px;
  padding: 0 0 36px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--line);
}

.legal-copy section:last-child { border-bottom: 0; }
.legal-copy strong { font-weight: 700; }

.notice {
  margin: 4px 0 34px;
  padding: 18px 20px;
  border: 1px solid #c5b18e;
  border-radius: 12px;
  color: #684b28;
  background: #f7edda;
  font-size: 14px;
}

.policy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 56px 0 90px;
  border: 1px solid var(--line);
  background: var(--line);
}

.policy-link {
  min-height: 220px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--raised);
  text-decoration: none;
}

.policy-link:hover { background: var(--floating); }
.policy-link small { color: var(--accent); font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.policy-link h2 { margin: 24px 0 8px; }
.policy-link p { color: var(--secondary); font-size: 15px; }
.policy-link .arrow { color: var(--accent); font-size: 22px; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.support-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 247, 240, 0.72);
}

.support-item p { margin: 0; color: var(--secondary); font-size: 15px; }

.contact-box {
  margin-top: 22px;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--floating);
  background: var(--accent);
}

.contact-box h3, .contact-box a { color: var(--floating); }
.contact-box p { margin-bottom: 8px; color: rgba(255, 253, 248, 0.82); }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(250, 247, 240, 0.65);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: var(--secondary); }

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

@media (max-width: 820px) {
  .header-inner { min-height: 64px; align-items: flex-start; padding: 14px 0; }
  .site-nav { max-width: 62%; gap: 8px 14px; flex-wrap: wrap; justify-content: flex-end; line-height: 1.2; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 62px 0 48px; }
  .hero-note { padding-top: 4px; }
  .page-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .toc { position: static; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .toc a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner, .hero, .document-hero, .page-grid, .footer-inner { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { flex-direction: column; gap: 9px; padding: 12px 0 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-nav { width: 100%; max-width: none; justify-content: space-between; gap: 8px; font-size: 11px; }
  .document-hero { padding-top: 52px; }
  .policy-list, .support-grid { grid-template-columns: 1fr; }
  .policy-link { min-height: 180px; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .site-header, .toc, .site-footer { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  .document-hero, .page-grid { width: 100%; }
  .document-hero { padding: 0 0 24px; }
  .page-grid { display: block; padding: 28px 0 0; }
  .legal-copy section { break-inside: avoid; }
  a { color: black; }
}

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