:root {
  --void: 240 29% 7%;
  --steel: 240 29% 12%;
  --laser: 160 62% 56%;
  --foreground: 160 5% 96%;
  --muted-fg: 240 10% 65%;
  --border: 240 20% 16%;
  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Inter', sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --void: 210 38% 98%;
    --steel: 0 0% 100%;
    --laser: 160 66% 38%;
    --foreground: 222 38% 14%;
    --muted-fg: 220 16% 34%;
    --border: 214 20% 84%;
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, hsl(var(--laser) / 0.08), transparent 24%),
    hsl(var(--void));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

a {
  color: hsl(var(--laser));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  transition: background 0.3s;
}

.site-header.scrolled {
  background: hsla(var(--void) / 0.85);
}

.site-header .logo {
  height: 1.5rem;
}

.site-header nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header nav a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  text-decoration: none;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: hsl(var(--foreground));
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: hsl(var(--laser));
  color: hsl(var(--void));
  box-shadow: 0 16px 36px hsl(var(--laser) / 0.2);
  transition: transform 0.2s, opacity 0.2s;
}

.header-link:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.legal-main {
  padding: 7.5rem 1rem 5rem;
}

.legal-main .container,
.site-footer .container {
  max-width: 80rem;
  margin: 0 auto;
  min-width: 0;
}

/* News listing + articles: narrow reading column inside the normal .container (80rem), so header/footer alignment stays unchanged */
.legal-main .news-page-inner {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.page-intro {
  margin-bottom: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: hsl(var(--muted-fg));
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.back-link:hover {
  color: hsl(var(--foreground));
}

.page-intro h1 {
  max-width: 14ch;
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-intro p {
  max-width: 44rem;
  margin: 0;
  color: hsl(var(--muted-fg));
}

.effective-date {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.page-meta p {
  margin: 0;
  font-size: 0.92rem;
  color: hsl(var(--muted-fg));
}

.legal-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top right, hsl(var(--laser) / 0.12), transparent 28%),
    linear-gradient(180deg, hsl(var(--laser) / 0.06), transparent 38%),
    hsl(var(--steel));
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.28);
}

.legal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, hsl(var(--laser) / 0.06), transparent 42%);
}

.legal-card > * {
  position: relative;
  z-index: 1;
}

.legal-card h2 {
  margin: 2rem 0 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 1.65rem;
  line-height: 1.2;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card > .lede {
  max-width: 54rem;
  color: hsl(var(--foreground) / 0.86);
}

.legal-card h3 {
  margin: 1.4rem 0 0.65rem;
  font-size: 1.02rem;
  color: hsl(var(--foreground));
}

.legal-card p,
.legal-card ul,
.legal-card li {
  color: hsl(var(--muted-fg));
}

.legal-card p {
  margin: 0 0 1rem;
}

.legal-card ul {
  margin: 0 0 1rem 1.35rem;
  padding: 0;
}

.legal-card li {
  margin-bottom: 0.55rem;
}

/* News index: avoid nested card — list items are plain blocks inside the narrow column */
.legal-card.news-index-shell {
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.35rem 0 0;
  background: transparent;
}

.legal-card.news-index-shell::before {
  display: none;
}

.legal-card.news-index-shell .news-list-item h2.news-list-title {
  margin: 0 0 0.35rem;
  padding-bottom: 0;
  border-bottom: none;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.legal-card.news-index-shell .news-list-excerpt {
  margin: 0;
  color: hsl(var(--muted-fg));
}

/* News article: no outer card border (cover + content define the block) */
.legal-card.news-article-shell {
  border: none;
}

/* News article body: no extra inset above the cover */
.legal-card > section.news-article {
  margin: 0;
  padding: 0;
}

/* News article: cover spans full width of .legal-card (bleeds past inner padding) */
/* Grid stacks image + scrim + title in one cell so the heading paints over the photo */
.news-article-cover-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  width: calc(100% + 3.5rem);
  max-width: none;
  margin-top: -1.75rem;
  margin-left: -1.75rem;
  margin-right: -1.75rem;
  margin-bottom: 1.25rem;
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
  background: hsl(var(--void));
  isolation: isolate;
}

.news-article-cover-img {
  grid-area: 1 / 1;
  z-index: 0;
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-article-card-head {
  margin: 0 0 1.25rem;
}

.news-article-card-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.news-article-card-lede-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-article-card-lede {
  margin: 0;
  max-width: 44rem;
  color: hsl(var(--muted-fg));
}

.news-article-card-published {
  margin: 0;
  font-size: 0.92rem;
  color: hsl(var(--muted-fg));
}

.news-article-end {
  margin-top: 1.5rem;
}

.news-article-end-rule {
  border: none;
  border-top: 2px solid hsl(var(--laser) / 0.35);
  margin: 0;
}

.news-article-end-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.news-article-end-published {
  margin: 0;
  margin-left: auto;
  max-width: 100%;
  font-size: 0.92rem;
  line-height: 1.3;
  color: hsl(var(--muted-fg));
  text-align: right;
}

.news-article-end .link-cluster {
  margin-top: 0;
}

.contact-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsla(var(--void) / 0.34);
}

.photo-feature {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 2.25rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at top right, hsl(var(--laser) / 0.12), transparent 30%),
    linear-gradient(135deg, hsl(var(--laser) / 0.07), transparent 58%),
    hsla(var(--void) / 0.38);
}

.photo-feature-copy {
  align-self: center;
}

.photo-feature-kicker {
  margin: 0 0 0.7rem;
  color: hsl(var(--laser));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.photo-feature h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
}

.photo-feature p:last-of-type {
  margin-bottom: 0;
}

.photo-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.photo-feature-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsla(var(--void) / 0.38);
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.photo-feature-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.photo-feature-figure img,
.photo-feature-figure video {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  border-radius: 0.5rem;
  background: hsl(var(--void));
}

.photo-feature-figure figcaption {
  width: 100%;
  margin: 0;
  color: hsl(var(--muted-fg));
  font-size: 0.82rem;
  line-height: 1.6;
}

.summary-grid,
.detail-grid,
.step-list,
.pricing-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.summary-card,
.detail-card,
.step-card,
.pricing-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsla(var(--void) / 0.34);
}

.summary-card h3,
.detail-card h3,
.step-card h3,
.pricing-card h3 {
  margin-top: 0;
}

.summary-card p:last-child,
.detail-card p:last-child,
.step-card p:last-child,
.pricing-card p:last-child,
.pricing-card ul:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: hsl(var(--laser));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.link-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsla(var(--void) / 0.34);
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, transform 0.2s;
}

.link-pill:hover {
  border-color: hsl(var(--laser) / 0.35);
  transform: translateY(-1px);
}

.cta-panel {
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px solid hsl(var(--laser) / 0.18);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, hsl(var(--laser) / 0.07), transparent 50%),
    hsla(var(--void) / 0.38);
}

.cta-panel h2,
.cta-panel h3 {
  margin-top: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s, opacity 0.2s;
}

.cta-button:hover {
  transform: translateY(-1px);
}

.cta-button.primary {
  background: hsl(var(--laser));
  color: hsl(var(--void));
  box-shadow: 0 16px 36px hsl(var(--laser) / 0.18);
}

.cta-button.secondary {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsla(var(--void) / 0.34);
}

.pricing-card.featured {
  border-color: hsl(var(--laser) / 0.28);
  background:
    linear-gradient(180deg, hsl(var(--laser) / 0.09), transparent 50%),
    hsla(var(--void) / 0.34);
}

.pricing-kicker {
  color: hsl(var(--laser));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.price-line {
  margin: 0.4rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: hsl(var(--foreground));
}

.price-line small {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: hsl(var(--muted-fg));
}

.leaderboard-stack {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.leaderboard-stack iframe {
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
}

.check-list {
  margin-left: 1.2rem;
}

.section-note:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

strong {
  color: hsl(var(--foreground));
}

.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-grid .logo {
  height: 1.5rem;
  margin-bottom: 1rem;
}

.footer-grid p,
.footer-grid li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  line-height: 1.7;
}

.footer-grid a,
.footer-meta-links a {
  color: hsl(var(--muted-fg));
  text-decoration: none;
  transition: color 0.2s;
}

.footer-grid a:hover,
.footer-meta-links a:hover {
  color: hsl(var(--foreground));
}

.footer-grid h4 {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--laser));
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  text-align: center;
}

.footer-meta-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
}

@media (min-width: 768px) {
  .site-header {
    padding: 1.25rem 3rem;
  }

  .site-header .logo {
    height: 1.75rem;
  }

  .site-header nav {
    display: flex;
  }

  .legal-main {
    padding: 8.5rem 2rem 6rem;
  }

  .legal-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
  }

  .legal-card .news-article-cover-wrap {
    width: calc(100% + 5rem);
    margin-top: -2.5rem;
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .summary-grid,
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .legal-card h2 {
    font-size: 1.85rem;
  }

  .photo-feature {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding: 1.5rem;
  }

  .photo-feature-figure img,
  .photo-feature-figure video {
    width: min(100%, 24rem);
  }

  .photo-feature.reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .photo-feature.reverse .photo-feature-copy {
    order: 2;
  }

  .photo-feature.reverse .photo-feature-figure {
    order: 1;
  }

  .site-footer {
    padding: 6rem 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .header-actions {
    gap: 0.75rem;
  }

  .header-link {
    display: none;
  }
}
