/* ═══════════════════════════════════════
   Legal Pages — Shared Layout
   ═══════════════════════════════════════ */

  /* ─── CONTENT LAYOUT ─── */
  .legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    padding: 64px 0 100px;
    position: relative;
  }


  /* ─── SIDEBAR TOC ─── */
  .toc {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .toc-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    padding-left: 14px;
  }

  .toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .toc-list a {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all var(--transition-quick);
    line-height: 1.4;
  }

  .toc-list a:hover {
    color: var(--primary);
    background: var(--primary-glow);
  }

  .toc-list a.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-glow);
    border-left-color: var(--primary);
  }


  /* ─── LEGAL CONTENT ─── */
  .legal-content {
    min-width: 0;
  }

  .legal-section {
    margin-bottom: 48px;
    scroll-margin-top: 90px;
  }

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

  .legal-section h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .section-num {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-10);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
  }

  .legal-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 14px;
  }

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

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

  .legal-section a {
    color: var(--primary);
    font-weight: 500;
    transition: opacity 0.2s ease;
  }

  .legal-section a:hover { opacity: 0.7; }

  .legal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 16px;
    padding-left: 4px;
  }

  .legal-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
  }

  .legal-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-20);
  }

  /* Highlight box */
  .legal-highlight {
    background: var(--primary-lighter);
    border: 1px solid var(--primary-10);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 16px 0;
  }

  .legal-highlight p {
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0;
    font-size: 0.88rem;
  }

  .legal-highlight strong {
    color: var(--primary-deep);
  }


/* Effective date badge (used in legal page heroes) */
.effective-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 18px;
  position: relative;
  animation: fadeSlideUp 0.7s ease-out 0.22s both;
}

.effective-date svg { width: 14px; height: 14px; }
