:root {
  color-scheme: dark;
  --ink: #15100c;
  --ink-soft: #21170f;
  --cream: #f6efdf;
  --paper: #fffaf0;
  --paper-soft: #f7efdf;
  --gold: #d9a22e;
  --gold-bright: #f0c968;
  --orange: #d95f28;
  --muted: #b9aa98;
  --body-muted: #66584c;
  --line: rgba(240, 201, 104, 0.22);
  --paper-line: #ded0b9;
  --shadow: 0 24px 70px rgba(8, 4, 2, 0.25);
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 280px;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 95, 40, 0.12), transparent 28rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--gold-bright);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--gold-bright);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

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

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

.legal-article :focus-visible {
  outline-color: #76500a;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 16, 12, 0.94);
  backdrop-filter: blur(18px);
}

.legal-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  line-height: 1.15;
  text-decoration: none;
}

.legal-brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 201, 104, 0.5);
  transform: rotate(45deg);
}

.legal-brand__mark::before,
.legal-brand__mark::after {
  position: absolute;
  content: "";
  border: 1px solid var(--gold);
}

.legal-brand__mark::before {
  width: 22px;
  height: 22px;
}

.legal-brand__mark::after {
  width: 10px;
  height: 10px;
  background: rgba(217, 162, 46, 0.16);
}

.legal-brand__copy {
  display: grid;
}

.legal-brand__copy strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.025em;
}

.legal-brand__copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-header__nav a {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ddd2c4;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.legal-header__nav a:hover {
  color: var(--gold-bright);
}

.legal-header__nav .legal-header__order {
  padding-inline: 18px;
  color: var(--ink);
  border: 1px solid var(--gold-bright);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.legal-header__nav .legal-header__order:hover {
  color: var(--ink);
  filter: brightness(1.06);
}

.legal-main {
  padding: 64px 0 88px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.policy-nav {
  position: sticky;
  top: 112px;
  min-width: 0;
  padding-top: 12px;
}

.policy-nav__label {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.policy-nav ul {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.policy-nav a {
  min-height: 44px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  border-left: 2px solid rgba(240, 201, 104, 0.18);
  color: #cfc2b2;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.policy-nav a:hover {
  color: var(--gold-bright);
  border-left-color: var(--gold);
}

.policy-nav a[aria-current="page"] {
  color: var(--cream);
  border-left-color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(217, 162, 46, 0.13), transparent);
}

.policy-nav__help {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.policy-nav__help a {
  min-height: 0;
  padding: 0;
  display: inline;
  border: 0;
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article {
  min-width: 0;
  overflow: hidden;
  color: #2b211a;
  border: 1px solid rgba(240, 201, 104, 0.23);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.policy-heading {
  padding: clamp(32px, 6vw, 64px);
  color: var(--cream);
  border-bottom: 1px solid rgba(240, 201, 104, 0.22);
  background:
    linear-gradient(135deg, rgba(217, 95, 40, 0.13), transparent 50%),
    var(--ink-soft);
}

.policy-heading__eyebrow {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.policy-heading h1 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.policy-heading__intro {
  max-width: 64ch;
  margin: 22px 0 0;
  color: #ded2c2;
  font-size: 17px;
}

.policy-heading__date {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.policy-content {
  padding: clamp(32px, 6vw, 64px);
}

.policy-content section + section {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--paper-line);
}

.policy-content h2 {
  margin: 0 0 16px;
  color: #1e160f;
  font-family: var(--serif);
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.policy-content h3 {
  margin: 28px 0 8px;
  color: #2a1d13;
  font-size: 16px;
  line-height: 1.35;
}

.policy-content p,
.policy-content ul,
.policy-content ol {
  max-width: 72ch;
}

.policy-content p {
  margin: 0 0 16px;
}

.policy-content ul,
.policy-content ol {
  margin: 14px 0 18px;
  padding-left: 1.4em;
}

.policy-content li {
  margin-block: 8px;
  padding-left: 4px;
}

.policy-content a {
  color: #73520b;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.policy-content a:hover {
  color: #4c3506;
}

.callout {
  margin: 30px 0;
  padding: 22px 24px;
  border: 1px solid #ddc99f;
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: #fbf1d9;
}

.callout--important {
  border-color: #dfb39d;
  border-left-color: var(--orange);
  background: #fff0e8;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: #291b12;
}

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

.detail-grid {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  background: var(--paper-soft);
}

.detail-card h3 {
  margin-top: 0;
}

.detail-card p,
.detail-card address {
  margin: 0;
  color: #51463d;
  font-style: normal;
}

.detail-card a {
  overflow-wrap: anywhere;
}

.definition-list {
  margin: 20px 0 0;
}

.definition-list dt {
  margin-top: 22px;
  color: #281c13;
  font-weight: 850;
}

.definition-list dd {
  margin: 5px 0 0;
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: #100c09;
}

.legal-footer__inner {
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 30px 60px;
  align-items: start;
}

.legal-footer__identity {
  max-width: 570px;
}

.legal-footer__identity strong {
  display: block;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.legal-footer__identity p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.legal-footer__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #d7ccbf;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(240, 201, 104, 0.4);
  text-underline-offset: 4px;
}

.legal-footer__links a:hover {
  color: var(--gold-bright);
}

@media (max-width: 780px) {
  .legal-header__inner {
    min-height: 70px;
  }

  .legal-brand__copy small,
  .legal-header__nav > a:first-child {
    display: none;
  }

  .legal-header__order {
    white-space: nowrap;
  }

  .legal-main {
    padding-top: 34px;
  }

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

  .policy-nav {
    position: static;
    padding: 0;
  }

  .policy-nav ul {
    width: 100%;
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .policy-nav a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid rgba(240, 201, 104, 0.18);
  }

  .policy-nav a:hover,
  .policy-nav a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--gold-bright);
    background: none;
  }

  .policy-nav__label,
  .policy-nav__help {
    display: none;
  }

  .legal-article {
    border-radius: 20px;
  }

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

  .legal-footer__inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .legal-shell {
    width: min(100% - 24px, 1120px);
  }

  .policy-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .policy-nav a {
    white-space: normal;
  }

  .legal-brand__mark {
    width: 34px;
    height: 34px;
  }

  .legal-brand__copy strong {
    font-size: 16px;
  }

  .legal-header__nav {
    gap: 0;
  }

  .legal-header__inner {
    gap: 12px;
  }

  .legal-header__nav a {
    padding-inline: 12px;
  }

  .policy-heading,
  .policy-content {
    padding: 28px 22px;
  }

  .policy-heading h1 {
    font-size: clamp(38px, 13vw, 50px);
  }

  .policy-heading__intro {
    font-size: 16px;
  }

  .policy-content section + section {
    margin-top: 36px;
    padding-top: 34px;
  }

  .callout {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .legal-brand__copy {
    display: none;
  }
}

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

@media (forced-colors: active) {
  .legal-brand__mark,
  .legal-brand__mark::before,
  .legal-brand__mark::after,
  .legal-article,
  .callout,
  .detail-card {
    border: 1px solid CanvasText;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  @page {
    margin: 18mm;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 10.5pt;
  }

  .skip-link,
  .legal-header,
  .policy-nav {
    display: none;
  }

  .legal-shell {
    width: 100%;
  }

  .legal-main {
    padding: 0;
  }

  .legal-layout {
    display: block;
  }

  .legal-article {
    color: #000;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .policy-heading {
    padding: 0 0 12mm;
    color: #000;
    border-bottom: 1px solid #777;
    background: #fff;
  }

  .policy-heading__eyebrow,
  .policy-heading__date,
  .policy-heading__intro {
    color: #222;
  }

  .policy-heading h1 {
    max-width: none;
    color: #000;
    font-size: 30pt;
  }

  .policy-content {
    padding: 10mm 0 0;
  }

  .policy-content section + section {
    border-color: #aaa;
  }

  .policy-content h2,
  .policy-content h3,
  .policy-content a {
    color: #000;
  }

  .callout,
  .detail-card {
    border: 1px solid #777;
    background: #fff;
    break-inside: avoid;
  }

  .legal-footer {
    margin-top: 12mm;
    color: #000;
    border-top: 1px solid #777;
    background: #fff;
  }

  .legal-footer__inner {
    padding: 8mm 0 0;
    display: block;
  }

  .legal-footer__identity strong,
  .legal-footer__identity p {
    color: #000;
  }

  .legal-footer__links {
    display: none;
  }

  a {
    color: #000;
  }

  a[href^="http"]::after,
  a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    overflow-wrap: anywhere;
  }
}
