:root {
  color-scheme: light dark;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #eef3ee;
  --text: #17211c;
  --muted: #5b665f;
  --border: #dce4dc;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --accent-soft: #d9f3ee;
  --warning: #fff7df;
  --warning-border: #ead58a;
  --shadow: 0 22px 60px rgba(23, 33, 28, 0.10);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101613;
    --surface: #17211c;
    --surface-muted: #1f2b25;
    --text: #edf4ef;
    --muted: #b5c2ba;
    --border: #2d3b33;
    --accent: #52c7b8;
    --accent-strong: #9de5db;
    --accent-soft: #173d39;
    --warning: #2d2916;
    --warning-border: #716123;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, 850px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 2rem, var(--max));
  min-height: 4.25rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  border-radius: 0.45rem;
  padding: 0.35rem 0.75rem;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text);
}

.hero,
.legal-hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.card-label {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 0.55rem;
  padding: 0.65rem 1rem;
  font-weight: 760;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.status-panel,
.policy-card,
.notice {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 1.25rem;
}

.status-panel dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.status-panel div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.status-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

dd {
  margin: 0.18rem 0 0;
  font-weight: 700;
}

.section {
  padding: 2.5rem 0 5rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.policy-card {
  min-height: 15rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.policy-card p:not(.card-label) {
  color: var(--muted);
}

.text-link {
  font-weight: 760;
}

.last-updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
}

.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--warning);
  border-color: var(--warning-border);
  box-shadow: none;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-bottom: 5rem;
}

.toc {
  position: sticky;
  top: 5.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.toc p {
  margin: 0 0 0.6rem;
  font-weight: 800;
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
}

.toc li {
  margin: 0.3rem 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.legal-content {
  padding: 0 0.25rem;
}

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

.legal-content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-content h2 {
  margin-bottom: 1rem;
}

.legal-content h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content strong {
  color: var(--text);
}

.legal-content address {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-grid p {
  margin: 0;
}

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

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .legal-hero {
    padding: 3.5rem 0 2.2rem;
  }

  .hero-grid,
  .card-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 520px) {
  .container,
  .narrow,
  .nav {
    width: min(100% - 1rem, var(--max));
  }

  h1 {
    font-size: 2.25rem;
  }

  .button,
  .actions {
    width: 100%;
  }
}

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

  body {
    background: white;
    color: black;
  }

  .legal-layout,
  .container,
  .narrow {
    display: block;
    width: 100%;
  }

  .notice {
    border: 1px solid #999;
    box-shadow: none;
  }
}
