/* ==========================================================
   LEGAL / INFO PAGES — luxury black, gold & white
   Covers: technology-ai.php, help-faq.php, terms.php
   and any future info page
   ========================================================== */
:root {
  --legal-gold: #D4AF37;
  --legal-gold-light: #F5E6A3;
  --legal-gold-dark: #b8960c;
  --legal-black: #0a0a0a;
  --legal-ink: #1a1a1a;
  --legal-body: #333333;
  --legal-muted: #6b7280;
  --legal-line: #e5e7eb;
  --legal-line-soft: #f1f5f9;
  --legal-amber: #FFD814;
  --legal-amber-deep: #F0A500;
  --gold-gradient: linear-gradient(135deg, #D4AF37, #C9A96E);
  --gold-gradient-light: linear-gradient(135deg, #F5E6A3, #D4AF37);
  --cta-gradient: linear-gradient(180deg, #FFD814 0%, #F0A500 100%);
  --cta-gradient-hover: linear-gradient(180deg, #F0C010 0%, #D88F00 100%);
}

/* ---------- Force white ---------- */
html, body {
  margin: 0;
  padding: 0;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--legal-black);
  font-family: 'Exo 2', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================
   HERO BANNER
   ========================================================== */
.legal-hero {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 20% 15%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.10), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #131313 55%, #0a0a0a 100%);
  color: #ffffff;
  padding: 3rem 1.5rem 2.5rem;
  overflow: hidden;
  border-bottom: 2px solid var(--legal-gold);
  isolation: isolate;
  text-align: center;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.95;
  z-index: 2;
}

.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  animation: legalHeroIn 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes legalHeroIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.legal-hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0 0 0.5rem;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.legal-hero-title .gold-text {
  background: var(--gold-gradient-light);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.35));
}

.legal-hero-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 3px;
  margin: 0.9rem auto 1rem;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.legal-hero-sub {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================
   MAIN
   ========================================================== */
.legal-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  background-color: #ffffff;
}

/* ---------- Breadcrumbs ---------- */
.legal-breadcrumbs {
  font-size: 0.85rem;
  color: var(--legal-muted);
  margin: 0 auto 1.5rem;
  max-width: 1100px;
  padding: 0 0.25rem;
  line-height: 1.6;
}
.legal-breadcrumbs a {
  color: var(--legal-gold-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.legal-breadcrumbs a:hover {
  color: var(--legal-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-crumb-sep {
  margin: 0 0.55rem;
  color: #cbd5e1;
  font-weight: 700;
}
.legal-crumb-current {
  color: var(--legal-black);
  font-weight: 700;
}

/* ==========================================================
   CONTENT CONTAINER
   ========================================================== */
.legal-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2.75rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.legal-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 16px 16px 0 0;
}

/* ---------- Page heading (inside container) ---------- */
.legal-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 900;
  color: var(--legal-black);
  letter-spacing: 0.4px;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.legal-heading::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 70px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* ---------- Section subheading ---------- */
.legal-subheading {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 800;
  color: var(--legal-black);
  letter-spacing: 0.3px;
  line-height: 1.35;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--legal-line);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.legal-subheading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* First subheading right after heading gets tighter top margin */
.legal-heading + .legal-subheading {
  margin-top: 1.75rem;
}

/* ---------- Body text ---------- */
.legal-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--legal-body);
  margin: 0 0 1.1rem;
}

.legal-text:last-child {
  margin-bottom: 0;
}

.legal-text strong {
  color: var(--legal-black);
  font-weight: 700;
  position: relative;
}

.legal-text a {
  color: var(--legal-gold-dark);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.45);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal-text a:hover {
  color: var(--legal-black);
  text-decoration-color: var(--legal-black);
}

/* ---------- Lists ---------- */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.legal-list-item {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--legal-body);
}

.legal-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
}

.legal-list-item strong {
  color: var(--legal-black);
  font-weight: 700;
}

.legal-list-item a {
  color: var(--legal-gold-dark);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.45);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal-list-item a:hover {
  color: var(--legal-black);
  text-decoration-color: var(--legal-black);
}

/* ==========================================================
   CLOSING CTA BAND
   ========================================================== */
.legal-cta {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.14), transparent 65%),
    linear-gradient(180deg, #0a0a0a 0%, #171717 100%);
  border: 1px solid var(--legal-gold);
  border-radius: 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.legal-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.legal-cta-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 900;
  color: var(--legal-gold);
  margin: 0 0 0.75rem;
  letter-spacing: 0.6px;
  line-height: 1.3;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

.legal-cta-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.legal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 2rem;
  border-radius: 40px;
  background: var(--cta-gradient);
  color: #0a0a0a;
  border: 1.5px solid #E0A800;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  box-shadow:
    0 6px 16px rgba(240, 165, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.legal-cta-btn:hover {
  background: var(--cta-gradient-hover);
  border-color: #C68800;
  transform: translateY(-2px);
  box-shadow:
    0 12px 26px rgba(240, 165, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #0a0a0a;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .legal-container {
    padding: 2rem 1.75rem 2.25rem;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 2.25rem 1rem 2rem;
  }
  .legal-hero-title {
    font-size: clamp(1.4rem, 6.5vw, 1.8rem);
  }
  .legal-hero-sub {
    font-size: 0.9rem;
  }

  .legal-main {
    padding: 1rem 0.75rem 1.5rem;
  }

  .legal-breadcrumbs {
    font-size: 0.78rem;
    margin-bottom: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .legal-container {
    padding: 1.5rem 1.25rem 1.75rem;
    border-radius: 14px;
  }

  .legal-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .legal-subheading {
    font-size: 1rem;
    margin-top: 2rem;
  }

  .legal-text,
  .legal-list-item {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .legal-list-item {
    padding-left: 1.5rem;
  }
  .legal-list-item::before {
    width: 7px;
    height: 7px;
    top: 0.6rem;
  }

  .legal-cta {
    padding: 2rem 1.25rem;
    border-radius: 14px;
    margin-top: 2rem;
  }
  .legal-cta-text { font-size: 0.88rem; }
  .legal-cta-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .legal-hero { padding: 1.75rem 0.85rem 1.5rem; }
  .legal-container { padding: 1.25rem 1rem 1.5rem; }
  .legal-text,
  .legal-list-item { font-size: 0.9rem; }
}