/* ==========================================================================
   Legal & Policies Page
   ========================================================================== */

/* ---- Hero ---- */
.legal-hero {
  background: #0a2f8a;
  padding: 80px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.legal-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.legal-hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  left: -180px;
  background: radial-gradient(circle, rgba(90, 127, 196, 0.45) 0%, transparent 70%);
}

.legal-hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.30) 0%, transparent 70%);
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
}

.legal-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.legal-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.legal-hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.legal-hero-updated {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* ---- Tab Bar ---- */
.legal-tabs-wrap {
  background: #0a2f8a;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-tab {
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.legal-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.legal-tab--active {
  background: #ffffff;
  color: #0a2f8a;
  border-color: #ffffff;
}

.legal-tab--active:hover {
  background: #ffffff;
  color: #0a2f8a;
  border-color: #ffffff;
}

/* ---- Content Panels ---- */
.legal-content {
  background: #ffffff;
  padding: 64px 0 80px;
  min-height: 60vh;
}

.legal-panel {
  display: none;
  max-width: 820px;
  margin: 0 auto;
}

.legal-panel--active {
  display: block;
}

/* ---- Typography within panels ---- */
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(10, 47, 138, 0.08);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0a2f8a;
  margin: 0 0 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a3a7a;
  margin: 28px 0 12px;
  line-height: 1.4;
}

.legal-section p {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.75;
  margin: 0 0 16px;
}

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

.legal-section ul,
.legal-section ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-section li {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.75;
  margin-bottom: 8px;
}

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

.legal-section a {
  color: #0a2f8a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.legal-section a:hover {
  color: #5a7fc4;
}

.legal-section strong {
  font-weight: 700;
  color: #1a202c;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .legal-hero {
    padding: 56px 0 40px;
  }

  .legal-hero-title {
    font-size: 32px;
  }

  .legal-hero-subtitle {
    font-size: 16px;
  }

  .legal-tabs {
    gap: 6px;
    padding: 10px 0;
  }

  .legal-tab {
    padding: 10px 20px;
    font-size: 13px;
  }

  .legal-content {
    padding: 40px 0 56px;
  }

  .legal-section h2 {
    font-size: 20px;
  }

  .legal-section h3 {
    font-size: 16px;
  }
}
