/* ═══════════════════════════════════════════════════════
   INNERLUXES — Legal Pages Premium Styles
   GDPR · Privacy Policy · Terms & Conditions
   ═══════════════════════════════════════════════════════ */

/* ── Page Wrapper ── */
.legal-page {
  background: var(--bg);
  position: relative;
  min-height: 100vh;
}

.legal-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(155,124,255,.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(111,73,255,.05) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(155,124,255,.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.legal-page main { position: relative; z-index: 1; }

body.light .legal-page {
  background: linear-gradient(180deg, #fff 0%, #f8f9fc 50%, #fff 100%);
}
body.light .legal-page::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(155,124,255,.10) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(111,73,255,.08) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(155,124,255,.06) 0%, transparent 40%);
}

/* ── Hero ── */
.legal-hero {
  padding: 9rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 50%, rgba(155,124,255,.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(111,73,255,.05) 0%, transparent 50%);
  pointer-events: none;
}

.legal-hero .container { position: relative; z-index: 2; }

.legal-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(111,73,255,.15), rgba(155,124,255,.10));
  border: 1px solid rgba(111,73,255,.20);
  margin-bottom: 2rem;
}

.legal-hero-icon svg {
  width: 32px; height: 32px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
}

.legal-hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.legal-hero-label span {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 3px;
  display: inline-block;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.legal-hero .hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.legal-hero .effective-date {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted);
  background: rgba(111,73,255,.08);
  border: 1px solid rgba(111,73,255,.12);
  border-radius: 100px;
  padding: .5rem 1.25rem;
}

body.light .legal-hero { background: #f8f9fc; }

/* ── Layout: Sidebar + Content ── */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

/* ── Sidebar ToC ── */
.legal-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.legal-toc {
  background: var(--card-bg, rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.legal-toc h3 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.legal-toc a {
  display: block;
  padding: .5rem .75rem;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all .2s ease;
  line-height: 1.4;
  margin-bottom: 2px;
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--primary);
  background: rgba(111,73,255,.08);
}

body.light .legal-toc {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* ── Main Content ── */
.legal-content {
  min-width: 0;
}

.legal-section {
  background: var(--card-bg, rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.legal-section:hover {
  border-color: rgba(111,73,255,.20);
  box-shadow: 0 8px 30px rgba(111,73,255,.06);
}

body.light .legal-section {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
body.light .legal-section:hover {
  box-shadow: 0 8px 30px rgba(111,73,255,.08);
}

.legal-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(111,73,255,.12), rgba(155,124,255,.08));
  border: 1px solid rgba(111,73,255,.15);
  margin-bottom: 1.25rem;
}

.legal-section-icon svg {
  width: 20px; height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 .75rem;
}

.legal-section p,
.legal-section li {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: .75rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-section ul li { list-style: disc; }
.legal-section ol li { list-style: decimal; }

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { opacity: .8; }

.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

/* Highlight box inside sections */
.legal-highlight {
  background: rgba(111,73,255,.06);
  border: 1px solid rgba(111,73,255,.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.legal-highlight p {
  margin-bottom: 0;
  color: var(--text);
  font-size: .88rem;
}

/* Contact card at bottom */
.legal-contact-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(111,73,255,.08), rgba(155,124,255,.04));
  border: 1px solid rgba(111,73,255,.15);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 1rem;
}

.legal-contact-card .contact-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), rgba(155,124,255,.8));
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-contact-card .contact-icon svg {
  width: 24px; height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
}

.legal-contact-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.legal-contact-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.legal-contact-card p a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.legal-contact-card p a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 4rem;
  }
  .legal-sidebar {
    position: static;
    max-height: none;
  }
  .legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: 1rem;
  }
  .legal-toc h3 {
    width: 100%;
    margin-bottom: .5rem;
    padding-bottom: .5rem;
  }
  .legal-toc a {
    font-size: .78rem;
    padding: .35rem .6rem;
  }
  .legal-section {
    padding: 1.75rem;
  }
  .legal-contact-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .legal-hero { padding: 7rem 0 2.5rem; }
  .legal-hero h1 { font-size: 1.75rem; }
  .legal-hero-icon { width: 56px; height: 56px; border-radius: 14px; }
  .legal-hero-icon svg { width: 24px; height: 24px; }
  .legal-section { padding: 1.25rem; border-radius: 14px; }
  .legal-section h2 { font-size: 1.15rem; }
}
