:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e5dc;
  --surface: #fffefa;
  --ink: #171c19;
  --muted: #59605b;
  --line: #bdc2ba;
  --line-strong: #7b837c;
  --accent: #b4452d;
  --accent-dark: #7f2e20;
  --green: #1d664b;
  --green-soft: #e4eee7;
  --amber: #7a5115;
  --amber-soft: #f3e9d4;
  --dark: #1a211d;
  --dark-muted: #b5bdb7;
  --max: 1120px;
  --reading: 760px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: var(--accent);
  content: "";
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.97);
}

.nav {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 20px;
  border: 2px solid var(--ink);
  background: var(--surface);
}

.brand-mark::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  height: 4px;
  background: var(--accent);
  content: "";
}

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

.nav-links a {
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #2b332e;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--surface);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.legal-hero {
  padding: 66px 0 52px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  max-width: 16ch;
  margin: 14px 0 0;
  font-size: clamp(42px, 5.8vw, 64px);
  font-weight: 770;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 68ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.version {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, var(--reading));
  gap: 72px;
  align-items: start;
  padding: 58px 0 82px;
}

.toc {
  position: sticky;
  top: 94px;
  padding: 17px 18px 19px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.72);
}

.toc strong {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

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

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

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

.legal-copy section + section {
  padding-top: 39px;
}

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

.legal-copy h2 {
  margin: 0 0 15px;
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 740;
  letter-spacing: -0.03em;
}

.legal-copy h3 {
  margin: 27px 0 9px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.legal-copy p {
  margin: 11px 0 0;
}

.legal-copy ul,
.legal-copy ol {
  margin: 13px 0 0;
  padding-left: 24px;
}

.legal-copy li + li {
  margin-top: 7px;
}

.legal-copy code {
  padding: 2px 5px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.9em;
}

.callout {
  margin: 21px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.callout p:first-child,
.callout ul:first-child {
  margin-top: 0;
}

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

.callout.good {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.callout.caution {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.identity {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin: 20px 0 0;
  border-top: 1px solid var(--line-strong);
}

.identity dt,
.identity dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.identity dt {
  padding-right: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.data-table-wrap {
  max-width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  min-width: 150px;
  padding: 12px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  margin: 2px 3px 2px 0;
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  text-transform: uppercase;
}

.plain-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.plain-card {
  padding: 18px;
  background: var(--surface);
}

.plain-card h3 {
  margin: 0;
  font-size: 17px;
}

.plain-card p {
  color: var(--muted);
  font-size: 14px;
}

.form-card {
  margin-top: 22px;
  padding: 25px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.field {
  margin-bottom: 18px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field .hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.check-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.check-field label {
  font-size: 14px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 21px;
}

.form-status {
  min-height: 25px;
  margin: 15px 0 0;
  font-size: 14px;
}

.form-status[data-kind="success"] {
  color: var(--green);
  font-weight: 700;
}

.form-status[data-kind="error"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.receipt {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--green);
  background: var(--green-soft);
}

.receipt[data-visible="true"] {
  display: block;
}

.receipt h3 {
  margin-top: 0;
}

.receipt dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin: 14px 0;
}

.receipt dt,
.receipt dd {
  margin: 0;
  padding: 5px 0;
}

.receipt dt {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-index {
  padding: 58px 0 82px;
}

.legal-index > p {
  max-width: 70ch;
  color: var(--muted);
  font-size: 17px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.index-card {
  min-height: 190px;
  padding: 24px;
  background: var(--surface);
}

.index-card .eyebrow {
  font-size: 9px;
}

.index-card h2 {
  margin: 9px 0 0;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.index-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.index-card a {
  font-weight: 720;
  text-decoration-color: var(--accent);
}

.site-footer {
  padding: 36px 0 44px;
  background: var(--dark);
  color: var(--dark-muted);
  font-size: 12px;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand span {
  display: block;
  margin-top: 5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 17px;
}

.footer-links a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toc {
    position: static;
  }

  .toc div {
    columns: 2;
  }

  .nav-links a:not(.button) {
    display: none;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(var(--max), calc(100% - 30px));
  }

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

  h1 {
    font-size: 41px;
  }

  .legal-layout {
    padding: 40px 0 60px;
  }

  .identity,
  .receipt dl {
    grid-template-columns: 1fr;
  }

  .identity dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .identity dd {
    padding-top: 2px;
  }

  .plain-card-grid,
  .index-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .site-header,
  .skip-link,
  .toc,
  .site-footer,
  .form-actions {
    display: none;
  }

  .legal-hero,
  .legal-layout {
    padding: 24px 0;
  }

  .legal-layout {
    display: block;
  }

  a {
    color: #000;
  }
}
