:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --paper-strong: #fbfaf6;
  --ink: #1c1b18;
  --muted: #6f6a5d;
  --line: #ded8c8;
  --terra: #b5482e;
  --terra-soft: #f0e2dc;
  --gold: #c9a96e;
  --amethyst: #8d72a2;
  --night: #0a0e1a;
  --night-soft: #121829;
  --star: #dfe6ff;
  --focus: #3159c7;
  --radius: 18px;
  --shadow: 0 24px 70px -42px rgba(36, 27, 17, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 2%, rgba(201, 169, 110, 0.19), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(141, 114, 162, 0.12), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--terra);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  transform: translateY(-180%);
}

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

.frequency-line {
  height: 5px;
  background: linear-gradient(90deg, var(--terra) 0 33.33%, var(--gold) 33.33% 66.66%, #7892e4 66.66%);
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(222, 216, 200, 0.85);
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-mark::before {
  inset: 6px;
  background: var(--terra);
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  top: -2px;
  right: 2px;
  background: var(--amethyst);
  box-shadow: 0 0 0 3px var(--paper);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.primary-nav a {
  padding: 0.45rem 0.66rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.review-banner {
  border-bottom: 1px solid #e2c3b8;
  background: var(--terra-soft);
  color: #582418;
}

.review-banner p {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.7rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.review-banner strong {
  margin-right: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.4rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--terra);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 66ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 2.2vw, 1.22rem);
}

.hero-note {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 246, 0.76);
  box-shadow: var(--shadow);
}

.hero-note p {
  margin: 0;
}

.hero-note .note-label {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.trust-card {
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.trust-card::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--terra);
}

.trust-card:nth-child(2)::before {
  background: var(--gold);
}

.trust-card:nth-child(3)::before {
  background: var(--amethyst);
}

.trust-card h2,
.trust-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: 1rem 0 5rem;
}

.toc {
  position: sticky;
  top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 250, 246, 0.82);
}

.toc p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 0.34rem;
}

.toc a {
  color: var(--ink);
  font-size: 0.86rem;
  text-decoration: none;
}

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

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

.legal-section {
  scroll-margin-top: 2rem;
  padding: 0 0 2.2rem;
  border-bottom: 1px solid var(--line);
}

.legal-section + .legal-section {
  padding-top: 2.2rem;
}

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

.section-number {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--terra);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.legal-section h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.legal-section h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.1rem;
}

.legal-section p,
.legal-section li {
  max-width: 76ch;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.2rem;
}

.legal-section li + li {
  margin-top: 0.5rem;
}

.data-table-wrap {
  overflow-x: auto;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.91rem;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.callout {
  margin: 1.3rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #f7eddb;
}

.callout strong {
  display: block;
  margin-bottom: 0.2rem;
}

.callout p {
  margin: 0;
}

.callout--critical {
  border-color: var(--terra);
  background: var(--terra-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.68rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--terra);
  border-color: var(--terra);
}

.button--secondary {
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--paper-strong);
  border-color: var(--ink);
}

.steps {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: aura-step;
}

.steps li {
  position: relative;
  min-height: 3rem;
  padding: 0.2rem 0 1.1rem 3.5rem;
  counter-increment: aura-step;
}

.steps li::before {
  content: counter(aura-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--terra);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 750;
}

details p {
  margin-top: 0;
  padding-right: 1rem;
  color: var(--muted);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(138, 166, 255, 0.2), transparent 25rem),
    var(--night);
  color: var(--star);
}

.site-footer .brand {
  color: var(--star);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    radial-gradient(circle at 12% 25%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 72%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 63% 35%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 68%, #fff 0 1px, transparent 1.5px);
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 2.8rem 0;
}

.footer-inner p {
  max-width: 58ch;
  margin: 0.35rem 0 0;
  color: #9ea8c7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
}

.footer-links a {
  color: var(--star);
}

.fine-print {
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .hero,
  .content-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    gap: 1.5rem;
  }

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

  .toc {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 0.96rem;
  }

  .header-inner,
  .page-shell,
  .footer-inner,
  .review-banner p {
    width: min(100% - 1.25rem, 1120px);
  }

  .primary-nav {
    gap: 0;
  }

  .primary-nav a {
    padding-inline: 0.48rem;
    font-size: 0.81rem;
  }

  h1 {
    font-size: clamp(2.45rem, 15vw, 4rem);
  }

  .cta-row,
  .button {
    width: 100%;
  }
}

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

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

  .site-header,
  .review-banner,
  .toc,
  .site-footer,
  .cta-row {
    display: none;
  }

  .hero,
  .content-layout {
    display: block;
    padding: 1rem 0;
  }

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

  a {
    color: #000;
  }
}
