/* =============================================
   EIBO CAREER HUB - LEGAL & COMPLIANCE PAGES
   ============================================= */

.legal-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(30, 144, 255, 0.1), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(0, 207, 255, 0.08), transparent 28%),
    #040710;
  min-height: 100vh;
}

.legal-hero {
  padding: 150px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-hero-inner {
  max-width: 820px;
}

.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.legal-breadcrumb a {
  color: var(--eibo-cyan);
  transition: var(--transition);
}

.legal-breadcrumb a:hover {
  color: #fff;
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 14px;
}

.legal-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.legal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-meta-pill i {
  color: var(--eibo-cyan);
}

.legal-body-section {
  padding: 56px 0 80px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 112px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(13, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-toc h3 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--eibo-cyan);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 207, 255, 0.16);
}

.legal-toc ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legal-toc a {
  display: block;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 4px 0;
  transition: var(--transition);
}

.legal-toc a:hover {
  color: #fff;
  transform: translateX(4px);
}

.legal-content {
  padding: 40px;
  border-radius: 22px;
  background: rgba(11, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-content section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scroll-margin-top: 110px;
}

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

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--eibo-cyan);
  margin: 18px 0 8px;
}

.legal-content p {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.82;
  margin-bottom: 14px;
}

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

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 12px 0 16px;
}

.legal-content li {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.78;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--eibo-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #fff;
}

.legal-callout {
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(30, 144, 255, 0.08);
  border: 1px solid rgba(30, 144, 255, 0.24);
  margin: 18px 0;
}

.legal-callout strong {
  color: #fff;
}

.legal-nav-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.legal-nav-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.legal-nav-card:hover {
  border-color: rgba(0, 207, 255, 0.35);
  transform: translateY(-2px);
}

.legal-nav-card strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.legal-nav-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 920px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .legal-content {
    padding: 26px 20px;
  }
  .legal-nav-cards {
    grid-template-columns: 1fr;
  }
}
