:root {
  --bg: #061018;
  --bg-soft: #0b1722;
  --surface: #0f1d29;
  --surface-strong: #142635;
  --border: rgba(183, 207, 225, 0.2);
  --text: #eef7fb;
  --muted: #a7b8c6;
  --accent: #43e0cf;
  --accent-2: #ffb476;
  --accent-3: #f07467;
  --ink: #071018;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.82), rgba(6, 16, 24, 1) 520px),
    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: inherit;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(6, 16, 24, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand-link,
.nav-links,
.hero-actions,
.meta-strip,
.policy-links {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(67, 224, 207, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(67, 224, 207, 0.98), rgba(255, 180, 118, 0.96));
  color: #061018;
  font-size: 13px;
  font-weight: 950;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.hero-actions a,
.policy-links a {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.hero-actions .primary-action,
.policy-links a:hover {
  border-color: rgba(67, 224, 207, 0.56);
  background: rgba(67, 224, 207, 0.13);
}

.legal-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  align-items: end;
  overflow: hidden;
  padding: 126px 28px 58px;
  isolation: isolate;
}

.legal-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/legal-hero.png");
  background-position: center;
  background-size: cover;
  content: "";
}

.legal-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.96), rgba(6, 16, 24, 0.78) 38%, rgba(6, 16, 24, 0.18) 72%),
    linear-gradient(180deg, rgba(6, 16, 24, 0.08), rgba(6, 16, 24, 0.9));
  content: "";
}

.hero-copy,
.content-inner,
.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 610px;
  color: #d8e6ee;
  font-size: 19px;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-actions .primary-action {
  color: #dffffb;
}

.meta-band {
  padding: 28px;
  background: linear-gradient(180deg, rgba(11, 23, 34, 0.98), rgba(6, 16, 24, 1));
}

.meta-strip {
  width: min(1160px, 100%);
  margin: 0 auto;
  gap: 12px;
}

.meta-item {
  flex: 1 1 0;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.meta-item strong,
.toc a,
.legal-block h3 {
  display: block;
}

.meta-item strong {
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 15px;
}

.meta-item span,
.legal-block p,
.legal-block li,
.site-footer {
  color: var(--muted);
}

.content-band {
  padding: 50px 28px 76px;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 1), rgba(8, 20, 30, 1) 52%, rgba(6, 16, 24, 1));
}

.content-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-home {
  width: min(1160px, 100%);
  margin: 0 auto;
}

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

.policy-card {
  display: grid;
  min-height: 260px;
  align-content: end;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(67, 224, 207, 0.13), rgba(255, 180, 118, 0.08)),
    rgba(15, 29, 41, 0.86);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.policy-card:hover {
  border-color: rgba(67, 224, 207, 0.54);
  transform: translateY(-2px);
}

.policy-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.policy-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.policy-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 29, 41, 0.72);
  box-shadow: var(--shadow);
}

.toc span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.toc a {
  padding: 8px 0;
  color: #d7e6ee;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

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

.legal-document {
  display: grid;
  gap: 18px;
}

.legal-block {
  scroll-margin-top: 110px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(15, 29, 41, 0.86);
  box-shadow: var(--shadow);
}

.legal-block h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-block h3 {
  margin: 18px 0 8px;
  color: var(--accent-2);
  font-size: 17px;
  letter-spacing: 0;
}

.legal-block p:last-child,
.legal-block ul:last-child {
  margin-bottom: 0;
}

.legal-block ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.legal-block a {
  color: #bdfaf2;
  font-weight: 800;
}

.callout {
  border-color: rgba(255, 180, 118, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 180, 118, 0.14), rgba(67, 224, 207, 0.08)),
    rgba(20, 38, 53, 0.92);
}

.policy-links {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.policy-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.05);
}

.site-footer {
  padding: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050d14;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-inner a {
  color: #d8fbf7;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero {
    min-height: 520px;
  }

  h1 {
    font-size: 48px;
  }

  .content-inner {
    grid-template-columns: 1fr;
  }

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

  .toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-nav {
    padding: 14px 16px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .legal-hero {
    min-height: 500px;
    padding: 132px 18px 42px;
  }

  .legal-hero::after {
    background:
      linear-gradient(90deg, rgba(6, 16, 24, 0.98), rgba(6, 16, 24, 0.76)),
      linear-gradient(180deg, rgba(6, 16, 24, 0.12), rgba(6, 16, 24, 0.92));
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .meta-band,
  .content-band,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .meta-strip {
    flex-direction: column;
  }

  .meta-item {
    width: 100%;
  }

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

  .legal-block {
    padding: 20px;
  }

  .legal-block h2 {
    font-size: 24px;
  }
}
