:root {
  --ink: #0f1218;
  --muted: #5f6672;
  --line: #dedfe2;
  --paper: #f7f5f0;
  --white: #fff;
  --orange: #ff6a00;
  --orange-soft: #fff0e5;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 3px;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

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

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid rgba(15, 18, 24, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.legal-header__inner {
  width: min(100% - 40px, 1280px);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header__logo {
  display: inline-flex;
  align-items: center;
}

.legal-header__logo img {
  display: block;
  width: auto;
  height: 25px;
  filter: invert(1);
}

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

.legal-header__nav a {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  color: #3f4650;
  font-family: "Lexend", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.legal-header__nav a:hover,
.legal-header__nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--white);
}

.legal-header__home::before {
  content: "←";
  margin-right: 8px;
  font-size: 16px;
}

.policy-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 106, 0, 0.23), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 48px 48px, 48px 48px, auto;
  border-bottom: 5px solid var(--orange);
}

.policy-hero__inner {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 104px);
}

.policy-hero__eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-family: "Lexend", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.policy-hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.policy-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: "Lexend", "Inter", sans-serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.policy-hero__lede {
  max-width: 770px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}

.policy-hero__meta {
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-hero__meta span {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.legal-shell {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 108px) 0 clamp(80px, 10vw, 132px);
  display: grid;
  grid-template-columns: 250px minmax(0, 790px);
  justify-content: space-between;
  gap: clamp(56px, 8vw, 120px);
}

.legal-toc {
  align-self: start;
  position: sticky;
  top: 108px;
}

.legal-toc__label {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: "Lexend", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  border-top: 1px solid var(--line);
}

.legal-toc li:last-child {
  border-bottom: 1px solid var(--line);
}

.legal-toc a {
  min-height: 43px;
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  color: #4b515b;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--orange);
  font-family: "Lexend", "Inter", sans-serif;
  font-size: 9px;
  font-weight: 700;
}

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

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

.legal-notice {
  margin: 0 0 52px;
  padding: 22px 24px;
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: 0 3px 3px 0;
  color: #3f332b;
  font-size: 15px;
  line-height: 1.65;
}

.legal-copy section {
  padding: 0 0 52px;
  margin: 0 0 52px;
  border-bottom: 1px solid var(--line);
}

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

.section-number {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-family: "Lexend", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-copy h2 {
  margin: 0 0 24px;
  font-family: "Lexend", "Inter", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.legal-copy h3 {
  margin: 32px 0 12px;
  font-family: "Lexend", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.legal-copy p,
.legal-copy li,
.legal-copy address {
  color: #3f4650;
  font-size: 15.5px;
  line-height: 1.78;
}

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

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

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

.legal-copy strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-copy a {
  color: #b34600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-copy a:hover {
  color: var(--orange);
}

.legal-copy address {
  margin: 0;
  font-style: normal;
}

.data-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
}

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

.data-table th,
.data-table td {
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: #3f4650;
  font-size: 13.5px;
  line-height: 1.55;
}

.data-table th {
  color: var(--ink);
  background: #f0eee9;
  font-family: "Lexend", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.contact-card,
.action-card {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 36px);
  color: var(--white);
  background: var(--ink);
  border-top: 4px solid var(--orange);
  border-radius: 3px;
}

.contact-card p,
.contact-card address,
.action-card p {
  color: rgba(255, 255, 255, 0.73);
}

.contact-card strong,
.action-card strong {
  color: var(--white);
}

.contact-card a,
.action-card a:not(.button-link) {
  color: #ff9a52;
}

.button-link {
  min-height: 50px;
  margin-top: 8px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--white) !important;
  background: var(--orange);
  border-radius: 3px;
  font-family: "Lexend", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.button-link::after {
  content: "→";
  font-size: 17px;
}

.button-link:hover {
  background: #ff8129;
}

.legal-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.legal-footer__inner {
  width: min(100% - 40px, 1280px);
  min-height: 154px;
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-footer__brand img {
  width: auto;
  height: 24px;
}

.legal-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  font-size: 12px;
  line-height: 1.5;
}

.legal-footer__meta a {
  color: var(--white);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .legal-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .legal-toc li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 82px;
  }

  .legal-header__inner,
  .policy-hero__inner,
  .legal-shell,
  .legal-footer__inner {
    width: min(100% - 32px, 1280px);
  }

  .legal-header__inner {
    min-height: 64px;
  }

  .legal-header__logo img {
    height: 21px;
  }

  .legal-header__nav a:not([aria-current="page"]):not(.legal-header__home) {
    display: none;
  }

  .legal-header__nav a {
    padding: 0 9px;
    font-size: 12px;
  }

  .legal-header__home::before {
    margin-right: 5px;
  }

  .policy-hero__inner {
    padding-top: 62px;
  }

  .policy-hero h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

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

  .legal-copy section {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .legal-copy p,
  .legal-copy li,
  .legal-copy address {
    font-size: 15px;
  }

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

  .legal-footer__meta {
    justify-content: flex-start;
  }
}

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

  .legal-header,
  .legal-toc,
  .legal-footer,
  .skip-link {
    display: none;
  }

  .policy-hero {
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .policy-hero__inner,
  .legal-shell {
    width: 100%;
    padding: 28px 0;
  }

  .policy-hero__eyebrow,
  .section-number {
    color: #000;
  }

  .policy-hero__lede,
  .policy-hero__meta span {
    color: #333;
  }

  .legal-shell {
    display: block;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
