/* ============================================
   LEGAL PAGES — Shared Layout
   ============================================ */

.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
  background-color: #FFFFFF;
}

.legal-layout {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 48px;
  align-items: start;
}

/* --- Sidebar TOC --- */
.legal-sidebar {
  position: sticky;
  top: 100px;
}

.legal-toc {
  background: #F8F7FF;
  border: 1px solid #EDE9FF;
  border-radius: 16px;
  padding: 28px 24px;
}

.legal-toc__title {
  font-size: 15px;
  font-weight: 700;
  color: #0F0F0F;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #EDE9FF;
}

.legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc__link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #7D7FA5;
  text-decoration: none;
  border-radius: 8px;
  border-right: 3px solid transparent;
  transition: all 0.2s ease;
}

.legal-toc__link:hover {
  color: #7145D6;
  background: rgba(113, 69, 214, 0.05);
}

.legal-toc__link.active {
  color: #7145D6;
  font-weight: 600;
  background: #FFFFFF;
  border-right-color: #7145D6;
}

/* --- Content Area --- */
.legal-content {
  max-width: 100%;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F3F0FF;
  color: #7145D6;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.legal-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: #0F0F0F;
  line-height: 1.3;
  margin-bottom: 16px;
}

.legal-content .legal-intro {
  font-size: 16px;
  color: #7D7FA5;
  line-height: 1.8;
  margin-bottom: 48px;
}

.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0F0F0F;
  margin-bottom: 16px;
  padding-right: 16px;
  border-right: 3px solid #7145D6;
}

.legal-section p {
  font-size: 15px;
  color: #4A4A6A;
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.legal-section ul li {
  position: relative;
  font-size: 15px;
  color: #4A4A6A;
  line-height: 1.9;
  padding-right: 20px;
  margin-bottom: 6px;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7145D6;
}

.legal-section strong {
  color: #0F0F0F;
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-sidebar {
    display: none;
  }

  .legal-page {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .legal-content h1 {
    font-size: 28px;
  }
}
