:root {
  color-scheme: light dark;
  --background: #f4f5f2;
  --surface: #ffffff;
  --raised: #e9ece9;
  --ink: #1a1d1e;
  --muted: #5f676a;
  --outline: #cbd0d0;
  --signal: #855100;
  --data: #126a78;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--data);
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--background);
  transform: translateY(-150%);
}

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

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

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

.masthead,
.footer-content {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
}

.brand-mark i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--data);
}

.brand-mark i:last-child {
  background: var(--signal);
}

.publisher,
.contact-location,
footer {
  color: var(--muted);
  font-size: 0.88rem;
}

.intro {
  padding: clamp(64px, 10vw, 112px) 0 56px;
  border-bottom: 1px solid var(--outline);
}

.eyebrow,
.contents > p,
.policy-meta dt,
.section-number,
.readout span {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--data);
}

h1 {
  max-width: 780px;
  margin: 8px 0 12px;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 48px 0 0;
  border: 1px solid var(--outline);
  background: var(--surface);
}

.policy-meta div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--outline);
}

.policy-meta div:last-child {
  border-right: 0;
}

.policy-meta dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

code,
.contact-link {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(48px, 9vw, 112px);
  align-items: start;
  padding: 64px 0 96px;
}

.contents {
  position: sticky;
  top: 24px;
  padding: 16px 0;
  border-block: 1px solid var(--outline);
}

.contents ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: section;
}

.contents li {
  counter-increment: section;
}

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

.contents a::before {
  content: counter(section, decimal-leading-zero) "  ";
  color: var(--data);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
}

.policy-copy section {
  position: relative;
  scroll-margin-top: 24px;
  padding: 0 0 48px 48px;
  border-left: 1px solid var(--outline);
}

.policy-copy section:last-child {
  padding-bottom: 0;
}

.section-number {
  position: absolute;
  top: 6px;
  left: -1px;
  width: 33px;
  padding: 4px 0;
  background: var(--background);
  color: var(--data);
  transform: translateX(-50%);
  text-align: center;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.policy-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border: 1px solid var(--outline);
  background: var(--surface);
}

.readout div {
  padding: 16px;
  border-right: 1px solid var(--outline);
}

.readout div:last-child {
  border-right: 0;
}

.readout strong {
  display: block;
  margin-top: 4px;
  color: var(--data);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.contact-link {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 12px 16px;
  border: 1px solid var(--data);
  color: var(--data);
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  background: var(--raised);
}

footer {
  border-top: 1px solid var(--outline);
  background: var(--surface);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111416;
    --surface: #1a1e21;
    --raised: #22272a;
    --ink: #e8ecee;
    --muted: #a8b0b4;
    --outline: #3a4145;
    --signal: #f2b84b;
    --data: #72c7d4;
  }
}

@media (max-width: 760px) {
  .publisher {
    display: none;
  }

  .intro {
    padding-top: 56px;
  }

  .policy-meta {
    grid-template-columns: 1fr 1fr;
  }

  .policy-meta div:nth-child(2) {
    border-right: 0;
  }

  .policy-meta div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--outline);
  }

  .policy-layout {
    display: block;
    padding-top: 40px;
  }

  .contents {
    position: static;
    margin-bottom: 48px;
  }

  .policy-copy section {
    padding-left: 32px;
  }

  .readout {
    grid-template-columns: 1fr;
  }

  .readout div {
    border-right: 0;
    border-bottom: 1px solid var(--outline);
  }

  .readout div:last-child {
    border-bottom: 0;
  }

  .footer-content {
    min-height: 80px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }
}

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

@media print {
  :root {
    --background: #ffffff;
    --surface: #ffffff;
    --ink: #000000;
    --muted: #333333;
    --outline: #bbbbbb;
  }

  .site-header,
  .contents,
  footer {
    display: none;
  }

  .intro {
    padding-top: 0;
  }

  .policy-layout {
    display: block;
    padding-top: 32px;
  }

  .policy-copy section {
    break-inside: avoid;
  }
}
