/* =========================================================
   Theme — Legal Pages (Privacy / Terms / Cookies / Disclaimer)
   File: /assets/css/theme-legal.css
   Purpose:
   - Use Gateway wallpaper + subtle overlays
   - Keep legal pages readable, neutral, and consistent
   - Designed to pair with /assets/css/base.css
   ========================================================= */

/* ---------------------------------------------
   BACKGROUND CANVAS (Gateway wallpaper)
   - Uses body.has-site-bg for backward compatibility
---------------------------------------------- */
body.has-site-bg::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/backgrounds/gateway-bg.png") center / cover no-repeat;
}

body.has-site-bg::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 25% 18%, rgba(70,240,255,0.12), transparent 60%),
    radial-gradient(900px 520px at 75% 18%, rgba(255,154,60,0.10), transparent 60%),
    linear-gradient(180deg, rgba(7,11,16,0.78), rgba(7,11,16,0.92));
}

/* ---------------------------------------------
   Optional: ensure the page uses the canvas
---------------------------------------------- */
html, body{
  min-height: 100%;
}

body{
  /* In case any page sets a background color elsewhere */
  background: transparent;
  color: var(--text);
}

/* =========================================================
   Legal Page Tokens (soften intensity)
   - We keep your base variables, just tweak emphasis
   ========================================================= */
:root{
  /* Slightly calmer glass for long reading */
  --legal-panel: rgba(0,0,0,0.58);
  --legal-panel2: rgba(0,0,0,0.70);
  --legal-border: rgba(255,255,255,0.18);

  /* Softer accents (still WLJ teal/orange, just polite) */
  --legal-accent: rgba(70,240,255,0.95);
  --legal-accent-soft: rgba(70,240,255,0.18);
  --legal-warm-soft: rgba(255,154,60,0.16);

  --legal-radius: 16px;
  --legal-shadow: 0 18px 55px rgba(0,0,0,0.55);
}

/* =========================================================
   Layout Helpers (use these classes in legal pages)
   ========================================================= */

.legal{
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 18px 70px;
}

.legal__panel{
  background: var(--legal-panel);
  border: 1px solid var(--legal-border);
  border-radius: var(--legal-radius);
  box-shadow: var(--legal-shadow);
  padding: 22px 22px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal__panel--dense{
  background: var(--legal-panel2);
}

/* Headings */
.legal h1{
  font-family: var(--serif);
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

.legal h2{
  font-family: var(--serif);
  letter-spacing: 0.02em;
  margin: 22px 0 10px;
  font-size: 1.25rem;
}

.legal .legal__meta{
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Body copy */
.legal p,
.legal li{
  color: var(--text);
  line-height: 1.75;
  font-size: 1.02rem;
}

.legal p{
  margin: 0 0 12px;
}

.legal ul{
  margin: 0 0 14px 18px;
}

.legal li{
  margin: 6px 0;
}

/* Subtle divider */
.legal .legal__divider{
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 18px 0 8px;
}

/* Callout note box */
.legal .legal__note{
  margin-top: 18px;
  padding: 14px 14px;
  border: 1px dashed rgba(255,255,255,0.20);
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Links */
.legal a{
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
  text-underline-offset: 3px;
}

.legal a:hover{
  text-decoration-color: var(--legal-accent);
}

/* Optional “soft glow” for emphasis elements */
.legal .legal__accent{
  color: var(--legal-accent);
  text-shadow: 0 0 18px rgba(70,240,255,0.14);
}

/* Accessibility: focus visibility */
.legal a:focus-visible{
  outline: 2px solid rgba(70,240,255,0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Mobile padding tuning */
@media (max-width: 520px){
  .legal{
    padding: 96px 14px 58px;
  }
  .legal__panel{
    padding: 18px 16px 14px;
  }
}