:root {
  color-scheme: light;
  --ink: #151719;
  --ink-soft: #3f4650;
  --muted: #68707d;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --surface-warm: #fff7f2;
  --line: #dde5e1;
  --line-strong: #c6d1cc;
  --orange: #ff6b35;
  --orange-dark: #b94720;
  --green: #167a5b;
  --blue: #276a88;
  --shadow: 0 24px 70px rgba(27, 38, 45, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

a {
  color: var(--orange-dark);
  text-decoration-color: rgba(185, 71, 32, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 12px;
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 229, 225, 0.92);
  background: rgba(246, 248, 247, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.50)),
    var(--surface-warm);
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 850;
}

h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 850;
}

.lede {
  max-width: 850px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-soft);
  padding: 0 13px;
  font-size: 0.86rem;
  font-weight: 750;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.summary-card {
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(27, 38, 45, 0.06);
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
}

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

.main-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  padding: 46px 0 72px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 96px;
  border-left: 3px solid var(--orange);
  padding: 2px 0 4px 16px;
}

.toc-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

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

.legal-content {
  min-width: 0;
  border-top: 1px solid var(--line);
}

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

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
}

.legal-section p {
  margin: 0 0 14px;
}

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

.legal-section li + li {
  margin-top: 8px;
}

.callout {
  margin: 20px 0;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #eef8f3;
  padding: 15px 17px;
  color: #174f3f;
}

.callout strong {
  color: #0f3b2f;
}

.warning {
  border-left-color: var(--orange);
  background: #fff4ee;
  color: #70351e;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

th {
  background: #f0f4f2;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

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

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

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.redirect-panel {
  max-width: 540px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

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

  .hero-inner {
    padding-top: 42px;
  }

  .summary-grid,
  .main-grid {
    grid-template-columns: 1fr;
  }

  .main-grid {
    gap: 24px;
  }

  .toc {
    position: static;
    border-left: 0;
    border-top: 3px solid var(--orange);
    padding: 14px 0 0;
  }

  .toc a {
    display: inline-flex;
    margin-right: 14px;
  }

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

@media (max-width: 520px) {
  .header-inner,
  .container,
  .hero-inner,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .nav a {
    min-height: 36px;
    padding: 0 10px;
  }

  .summary-card {
    min-height: auto;
  }

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