:root {
  color-scheme: light;
  --paper: #fbf8f3;
  --surface: #ffffff;
  --surface-soft: #fff4df;
  --ink: #25211e;
  --ink-soft: #5f5851;
  --ink-muted: #817970;
  --brand: #f58a17;
  --brand-deep: #9a4c00;
  --brand-soft: #fff0d2;
  --mint: #dcefe6;
  --mint-ink: #24634c;
  --blue-soft: #e9f2f6;
  --blue-ink: #285c70;
  --rose-soft: #f9e9e6;
  --rose-ink: #8e453a;
  --line: #e8e0d7;
  --shadow: 0 18px 50px rgba(81, 55, 29, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #743900;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(245, 138, 23, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(232, 224, 215, 0.9);
  background: rgba(251, 248, 243, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(118, 70, 16, 0.12);
}

.brand-name {
  font-size: 19px;
  font-weight: 780;
  letter-spacing: 0;
}

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

.header-nav a {
  border-radius: 6px;
  color: var(--ink-soft);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.header-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.legal-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 52px 0 96px;
}

.legal-hero {
  max-width: 860px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 760;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 790;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-muted);
  font-size: 13px;
}

.document-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.document-meta span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c2b7ac;
  content: "";
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 42px;
}

.trust-item {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.trust-item:nth-child(2) {
  background: var(--surface-soft);
}

.trust-item:nth-child(3) {
  background: var(--mint);
}

.trust-symbol {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 800;
}

.trust-item:nth-child(3) .trust-symbol {
  background: rgba(255, 255, 255, 0.62);
  color: var(--mint-ink);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.trust-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.legal-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 54px;
}

.toc {
  position: sticky;
  top: 106px;
}

.toc-title {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list a {
  display: block;
  border-left: 2px solid transparent;
  color: var(--ink-muted);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a.is-active {
  border-left-color: var(--brand);
  color: var(--ink);
}

.toc-help {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--ink-muted);
  font-size: 12px;
}

.toc-help a {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

.legal-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 54px 54px;
}

.legal-section {
  border-bottom: 1px solid var(--line);
  padding: 42px 0 36px;
}

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

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 760;
}

h3 {
  margin: 26px 0 9px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 740;
}

.legal-content p,
.legal-content li,
.legal-content td,
.legal-content th {
  color: var(--ink-soft);
  font-size: 15px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 18px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
  padding-left: 3px;
}

.legal-content strong {
  color: var(--ink);
  font-weight: 720;
}

.callout {
  margin: 22px 0;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 17px 18px;
}

.callout.mint {
  border-left-color: #5e9b80;
  background: var(--mint);
}

.callout.blue {
  border-left-color: #6294a7;
  background: var(--blue-soft);
}

.callout.critical {
  border-left-color: #c86b5e;
  background: var(--rose-soft);
}

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

.data-table-wrap {
  width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
}

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

.data-table th {
  background: #f6f1eb;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.steps {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-step;
}

.steps li {
  position: relative;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px 10px 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  counter-increment: legal-step;
}

.steps li::before {
  position: absolute;
  top: 9px;
  left: 11px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  content: counter(legal-step);
  font-size: 12px;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 22px;
}

.contact-panel p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.contact-panel a {
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 740;
  text-decoration: none;
  white-space: nowrap;
}

.legal-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 13px;
}

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

.legal-footer a {
  color: var(--ink-soft);
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 900px) {
  .legal-shell {
    padding-top: 38px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .toc {
    position: static;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
  }

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

  .toc-list a {
    border-left: 0;
    border-radius: 5px;
  }

  .toc-list a:hover,
  .toc-list a.is-active {
    background: var(--brand-soft);
  }

  .toc-help {
    display: none;
  }
}

@media (max-width: 700px) {
  .header-inner,
  .legal-shell,
  .legal-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-lockup img {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-nav a {
    padding: 8px;
    font-size: 12px;
  }

  .header-nav .home-link {
    display: none;
  }

  .legal-shell {
    padding-bottom: 64px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-intro {
    font-size: 16px;
  }

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

  .trust-item {
    min-height: 0;
  }

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

  .legal-content {
    padding: 2px 20px 34px;
  }

  .legal-section {
    padding: 34px 0 28px;
  }

  h2 {
    font-size: 22px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel a {
    text-align: center;
  }

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

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

@media print {
  .site-header,
  .toc,
  .legal-footer,
  .skip-link {
    display: none;
  }

  body {
    background: white;
  }

  .legal-shell {
    width: 100%;
    padding: 0;
  }

  .legal-grid {
    display: block;
  }

  .legal-content {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
