/* ══════════════════════════════
   LEGAL HUB / EDITORIAL LUXURY 
   ══════════════════════════════ */

.legal-wrap {
  min-height: 100vh;
  padding: 120px 0 80px;
  background: var(--bg);
  /* Ethereal background gradient overlay inherited or overridden */
}

/* Base Editorial Layout */
.legal-editorial-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Sidebar & Navigation */
.legal-sidebar {
  position: relative;
}

.legal-sidebar-inner {
  position: sticky;
  top: 120px;
}

.legal-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--tx);
  margin-bottom: 1rem;
}

.legal-hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tx-2);
  margin-bottom: 3rem;
  max-width: 280px;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--tx-2);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
  position: relative;
  padding-left: 0;
}

.legal-nav-link:hover, .legal-nav-link.active {
  color: var(--tx);
  opacity: 1;
  padding-left: 12px;
}

/* Adding a delicate red indicator for active/hover */
.legal-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background-color: var(--red);
  transition: height 0.3s ease;
}

.legal-nav-link:hover::before, .legal-nav-link.active::before {
  height: 12px;
}

/* Right Content Area */
.legal-content {
  max-width: 760px;
  animation: legalFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes legalFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-section {
  margin-bottom: 6rem;
}

.legal-section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tx);
  margin-bottom: 2rem;
}

.legal-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tx);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.legal-section p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tx-2);
  margin-bottom: 1.5rem;
}

.legal-section ul {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.legal-section li {
  position: relative;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tx-2);
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
}

.legal-section li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.legal-section strong {
  color: var(--tx);
  font-weight: 600;
}

.legal-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 4rem 0;
}

.legal-disclaimer {
  margin-top: 4rem;
  font-size: 0.875rem !important;
  color: var(--tx-3) !important;
  font-style: italic;
  opacity: 0.6;
}

/* ══════════════════════════════
   MOBILE OVERRIDES
   ══════════════════════════════ */
@media (max-width: 1024px) {
  .legal-editorial-grid {
    grid-template-columns: 250px 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .legal-editorial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.25rem;
  }

  .legal-sidebar-inner {
    position: relative;
    top: 0;
  }

  .legal-hero-title {
    font-size: 2.5rem;
  }

  .legal-section {
    margin-bottom: 4rem;
  }

  .legal-section h2 {
    font-size: 1.75rem;
  }

  .legal-section p, .legal-section li {
    font-size: 1rem;
  }
}
