:root {
  color-scheme: light;
  --ink: #2d2115;
  --muted: #675b4e;
  --paper: #fffaf1;
  --cream: #f7eddd;
  --line: #dfd0ba;
  --wood: #4b2d18;
  --copper: #a95f32;
  --gold: #d7a93f;
  --olive: #60713b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: #70401f;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--copper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--wood);
  color: #fffaf1;
}

.header-inner {
  width: min(100% - 32px, 1040px);
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.document-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.document-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fffaf1;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.document-nav a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

main {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
  padding: 48px 0 72px;
}

.document-heading {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--wood);
  line-height: 1.2;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.updated {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary {
  margin-bottom: 34px;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
}

.summary p {
  margin: 0;
}

.toc {
  margin-bottom: 38px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 36px;
}

.toc li {
  break-inside: avoid;
  margin: 5px 0;
}

.legal-section {
  scroll-margin-top: 92px;
  margin-top: 14px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

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

p {
  margin: 0 0 14px;
}

ul {
  margin: 10px 0 16px;
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

.data-table {
  width: 100%;
  margin: 16px 0 20px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--cream);
  color: var(--wood);
}

.callout {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #bcc69f;
  border-radius: 8px;
  background: #f3f6ea;
}

.contact-box {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.contact-box p:last-child,
.legal-section p:last-child {
  margin-bottom: 0;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-inner {
  width: min(100% - 32px, 880px);
  min-height: 84px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 680px) {
  .header-inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .document-nav {
    width: 100%;
  }

  .document-nav a {
    flex: 1;
    justify-content: center;
  }

  main {
    padding-top: 34px;
  }

  .toc ol {
    columns: 1;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
  }

  .data-table td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--wood);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .footer-inner {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
