:root {
  color: #0a0404;
  background: #ffffff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #ffffff;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 2px solid #0a0404;
  border-radius: 999px;
  background: #ffffff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.legal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  letter-spacing: -0.04em;
  font-size: 17px;
}

.brand-copy span {
  margin-top: 4px;
  color: rgba(10, 4, 4, 0.62);
  font: 650 10px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav a,
.legal-footer a {
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(10, 4, 4, 0.72);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.topnav a:hover,
.legal-footer a:hover {
  color: #0a0404;
  background: #fff8ed;
}

.topnav a:focus-visible,
.legal-footer a:focus-visible,
.toc a:focus-visible,
.body-copy a:focus-visible {
  outline: 3px solid #fb4e08;
  outline-offset: 3px;
}

.hero {
  overflow: hidden;
  border: 1px solid rgba(10, 4, 4, 0.18);
  border-radius: 30px;
  background: #fb4e08;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 56px;
}

.eyebrow,
.section-number,
.version-chip {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero h1 {
  max-width: 12ch;
  margin: 12px 0 0;
  letter-spacing: -0.06em;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
}

.hero-summary {
  max-width: 33ch;
  margin: 0;
  color: rgba(10, 4, 4, 0.76);
  font-size: 17px;
  line-height: 1.45;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(10, 4, 4, 0.18);
  background: #fff8ed;
}

.signal {
  min-height: 108px;
  padding: 25px 28px;
}

.signal + .signal {
  border-left: 1px solid rgba(10, 4, 4, 0.18);
}

.signal strong {
  display: block;
  margin-bottom: 7px;
  letter-spacing: -0.025em;
  font-size: 17px;
}

.signal span {
  color: rgba(10, 4, 4, 0.62);
  font-size: 13px;
  line-height: 1.4;
}

.content-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  border: 1px solid rgba(10, 4, 4, 0.16);
  border-radius: 24px;
  padding: 22px;
  background: #fff8ed;
}

.toc strong {
  display: block;
  margin-bottom: 13px;
  font-size: 13px;
}

.toc ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  border-radius: 10px;
  padding: 6px;
  color: rgba(10, 4, 4, 0.68);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #0a0404;
  font: 700 9px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.toc a:hover {
  color: #0a0404;
  background: rgba(251, 78, 8, 0.12);
}

.body-copy {
  overflow: hidden;
  border: 1px solid rgba(10, 4, 4, 0.16);
  border-radius: 30px;
  background: #ffffff;
}

.body-copy section {
  scroll-margin-top: 24px;
  padding: 36px 40px;
}

.body-copy section + section {
  border-top: 1px solid rgba(10, 4, 4, 0.14);
}

.section-number {
  display: inline-flex;
  min-width: 34px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fb4e08;
}

.body-copy h2 {
  margin: 15px 0 15px;
  letter-spacing: -0.045em;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1;
}

.body-copy h3 {
  margin: 24px 0 8px;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.body-copy p,
.body-copy li {
  color: rgba(10, 4, 4, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.body-copy p {
  margin: 0 0 13px;
}

.body-copy ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 16px;
  padding-left: 21px;
}

.body-copy strong {
  color: #0a0404;
}

.body-copy a {
  text-decoration-color: #fb4e08;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.callout {
  margin: 20px 0 4px;
  border-left: 5px solid #fb4e08;
  border-radius: 0 18px 18px 0;
  padding: 18px 20px;
  background: #fff8ed;
}

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

.version-chip {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid rgba(10, 4, 4, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  background: #ffffff;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px 0;
  color: rgba(10, 4, 4, 0.58);
  font-size: 12px;
}

.legal-footer nav {
  display: flex;
  gap: 3px;
}

@media (max-width: 800px) {
  .legal-shell {
    width: min(100% - 24px, 720px);
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topnav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topnav a {
    padding: 7px 9px;
    font-size: 12px;
  }

  .hero,
  .body-copy {
    border-radius: 24px;
  }

  .hero-main {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal {
    min-height: 0;
  }

  .signal + .signal {
    border-top: 1px solid rgba(10, 4, 4, 0.18);
    border-left: 0;
  }

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

  .toc {
    position: static;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .body-copy section {
    padding: 30px 25px;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand-copy span {
    display: none;
  }

  .topnav a:first-child {
    display: none;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }
}

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