/* ===== LEGAL PAGES SHARED STYLESHEET ===== */

/* SCOPE ISOLATION — prevent homepage section styles from polluting legal pages */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ========== LEGAL PAGE LAYOUT ========== */
.legal-page {
  background-color: #0b0b12;
  color: #f8fafc;
}

.legal-header {
  background: linear-gradient(135deg, #151524 0%, #1a1a2e 100%);
  border-bottom: 1px solid #1f1f33;
  padding: 100px 0 48px;
  text-align: center;
}

.legal-header .container {
  max-width: 900px;
}

.legal-header h1 {
  font-size: 38px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.legal-header .legal-meta {
  font-size: 14px;
  color: #94a3b8;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ========== TABLE OF CONTENTS ========== */
.legal-toc {
  background-color: #151524;
  border: 1px solid #1f1f33;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 20px;
  columns: 1;
}

.legal-toc ol li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.legal-toc ol li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-toc ol li a:hover {
  color: #10b981;
}

/* ========== SECTION STYLING ========== */
.legal-content section {
  margin-bottom: 40px;
  padding-bottom: 8px;
}

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

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 16px;
  padding-top: 8px;
  letter-spacing: -0.3px;
}

.legal-content h2[id] {
  scroll-margin-top: 88px;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 10px;
  margin-top: 20px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #94a3b8;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.8;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 6px;
}

.legal-content strong {
  color: #e2e8f0;
  font-weight: 600;
}

.legal-content a {
  color: #10b981;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-content a:hover {
  color: #059669;
  text-decoration: underline;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  padding: 10px 20px;
  background-color: #151524;
  border: 1px solid #1f1f33;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-to-top:hover {
  border-color: #10b981;
  color: #10b981;
}

/* ========== EFFECTIVE DATE ========== */
.legal-effective {
  font-size: 13px;
  color: #64748b;
  text-align: right;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #1f1f33;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .legal-header {
    padding: 88px 0 36px;
  }

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

  .legal-content {
    padding: 32px 20px 48px;
  }

  .legal-content h2 {
    font-size: 19px;
  }

  .legal-toc {
    padding: 20px;
  }
}
