/* ── Veltza legal pages (privacy, terms, delete-account, legal): restyle on top of styles.css + site.css.
   Legal text, anchors and legal.js are unchanged. Prose stays sentence-case Inter for readability. ── */
.legal-page .legal-shell {
  position: relative;
  z-index: 1;
}

.legal-page .glass-panel {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 55%),
    rgba(9, 18, 36, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Hero: same eyebrow + display title as the rest of the site */
.legal-page .legal-hero .eyebrow {
  font-family: var(--wl-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--wl-teal);
}

.legal-page .legal-hero h1 {
  font-family: var(--wl-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

.legal-page .legal-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(61, 123, 255, 0.7), transparent 40%, rgba(0, 245, 200, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.legal-page .legal-hero .updated {
  font-family: var(--wl-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--wl-faint);
}

/* Callouts */
.legal-page .legal-callout {
  border-radius: 18px;
}

.legal-page .legal-callout-accent {
  border-color: rgba(0, 245, 200, 0.35);
  background: rgba(0, 245, 200, 0.07);
}

/* Table of contents */
.legal-page .legal-toc .toc-label {
  font-family: var(--wl-mono);
  letter-spacing: 0.18em;
  color: var(--wl-faint);
}

.legal-page .legal-toc a.is-active,
.legal-page .legal-toc a:hover {
  color: #fff;
}

.legal-page .legal-toc a.is-active {
  border-left-color: var(--wl-teal);
  background: rgba(0, 245, 200, 0.08);
}

/* Prose: readable line length and contrast */
.legal-page .legal-prose h2 {
  color: #fff;
  letter-spacing: -0.01em;
}

.legal-page .legal-prose a {
  color: var(--wl-teal);
}

.legal-page .legal-step-card {
  border-radius: 16px;
}

/* Narrow phones: let the prose column shrink and long words/emails wrap instead of overflowing */
.legal-page .legal-layout {
  grid-template-columns: minmax(0, 1fr);
}

.legal-page .legal-prose {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 960px) {
  .legal-page .legal-layout {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .legal-page .legal-hero h1 {
    font-size: 26px;
  }
}
