/* Legal pages — same stained-glass garden + neon teal/pink as /mission/. */

.legal-page {
  --font-garden-display: "Cinzel", "Syne", "Palatino Linotype", serif;
  --font-garden-serif: "Cormorant Garamond", "Palatino Linotype", serif;
  --mp-gold: #f3d48a;
  --mp-ivory: #f8f1e6;
  --mp-glass: rgba(16, 10, 18, 0.62);
  --mp-glass-border: rgba(255, 232, 200, 0.22);
  min-height: 100vh;
  position: relative;
  background: #120e14;
}

.legal-page .page-vignette,
.legal-page .page-grain { z-index: 1; }

.lg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lg-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.05) brightness(0.55);
  transform: scale(1.06);
}

.lg-scene-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 14, 0.42) 0%, rgba(10, 6, 14, 0.55) 40%, rgba(10, 6, 14, 0.82) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(94, 232, 224, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(232, 139, 200, 0.12), transparent 55%);
}

.legal-page .nav,
.legal-page .footer {
  position: relative;
  z-index: 5;
}

.legal-page .nav {
  background: rgba(12, 8, 14, 0.78);
}

.legal-page .nav-rooms a[aria-current="page"],
.legal-page .nav-rooms a.is-active {
  color: var(--text);
  border-bottom-color: var(--neon-teal);
}

.lg-main {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.1rem 3.5rem;
}

.lg-wrap {
  width: min(44rem, 100%);
  margin: 0 auto;
}

.lg-hero {
  margin: 0 0 1.4rem;
  padding: 0.4rem 0 0.2rem;
}

.lg-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-garden-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 6vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: 0.03em;
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
  color: var(--mp-ivory);
  text-shadow:
    0 1px 0 rgba(255, 240, 210, 0.28),
    0 0 28px rgba(243, 212, 138, 0.28),
    0 0 18px rgba(94, 232, 224, 0.18);
}

.lg-lede {
  margin: 0 0 0.7rem;
  font-family: var(--font-garden-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  line-height: 1.35;
  color: #fff8ee;
  text-shadow: 0 1px 10px rgba(8, 4, 10, 0.6);
}

.lg-meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--font-hud, var(--font-display));
}

.lg-toc,
.lg-section {
  background: var(--mp-glass);
  border: 1px solid var(--mp-glass-border);
  border-radius: 1.1rem;
  box-shadow: 0 16px 40px rgba(8, 4, 12, 0.35);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.lg-toc {
  padding: 1.1rem 1.15rem 1.15rem;
  margin: 0 0 1.2rem;
}

.lg-toc p {
  margin: 0 0 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--font-hud, var(--font-display));
}

.lg-toc ol {
  margin: 0;
  padding: 0 0 0 1.15rem;
  columns: 1;
}

.lg-toc li {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 300;
  color: rgba(248, 241, 230, 0.9);
}

.lg-toc a {
  color: var(--mp-ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 232, 224, 0.35);
}

.lg-toc a:hover,
.lg-toc a:focus-visible {
  color: var(--neon-teal);
  outline: none;
}

.lg-section {
  padding: 1.2rem 1.15rem 0.45rem;
  margin: 0 0 1rem;
}

.lg-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-garden-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  letter-spacing: 0.05em;
  color: var(--mp-ivory);
  text-shadow: 0 0 16px rgba(94, 232, 224, 0.25);
}

.lg-section h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--mp-ivory);
}

.lg-section p,
.lg-section li {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(248, 241, 230, 0.92);
}

.lg-section ul,
.lg-section ol {
  margin: 0 0 1rem;
  padding: 0 0 0 1.2rem;
}

.lg-section li { margin: 0 0 0.45rem; }

.lg-section a {
  color: var(--neon-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 232, 224, 0.4);
}

.lg-section a:hover,
.lg-section a:focus-visible {
  color: #fff;
  border-bottom-color: var(--brass);
  outline: none;
}

.lg-section a[data-legal-mailto]:not([href]) {
  color: var(--mp-ivory);
  border-bottom-style: dashed;
  cursor: text;
}

.legal-page .footer {
  background: rgba(10, 7, 12, 0.88);
  border-top-color: rgba(110, 213, 206, 0.16);
}

@media (min-width: 700px) {
  .lg-main { padding: 2.2rem 1.5rem 4rem; }
  .lg-toc,
  .lg-section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg-toc ol { columns: 2; column-gap: 1.5rem; }
  .lg-section p,
  .lg-section li { font-size: 1.06rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-scene img { transform: none; }
}
