/* ===== Legal Pages Stylesheet ===== */

/* Scope isolation: prevent homepage styles from polluting legal pages */
.legal-page section {
  background-color: transparent !important;
}

.legal-page {
  padding-top: 72px;
  background-color: #faf8f5;
  color: #1a1d2e;
  min-height: 100vh;
}

.legal-page .legal-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 48px;
}

.legal-page .legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid #e2e8f0;
}

.legal-page .legal-header h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 38px;
  font-weight: 700;
  color: #0a101e;
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-page .legal-header .effective-date {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.legal-page .legal-header .back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #7c3aed;
  font-weight: 600;
  margin-top: 16px;
  transition: color 0.2s ease;
}

.legal-page .legal-header .back-home:hover {
  color: #6d28d9;
}

/* Table of Contents */
.legal-page .toc {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.legal-page .toc h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  color: #0a101e;
  margin-bottom: 16px;
}

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

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

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

.legal-page .toc ol li a:hover {
  color: #6d28d9;
  text-decoration: underline;
}

/* Legal Content */
.legal-page .legal-content h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  color: #0a101e;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.legal-page .legal-content h2:first-of-type {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

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

.legal-page .legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page .legal-content ul li {
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page .legal-content ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page .legal-content ol li {
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page .legal-content strong {
  color: #0a101e;
  font-weight: 700;
}

.legal-page .legal-content a {
  color: #7c3aed;
  text-decoration: none;
}

.legal-page .legal-content a:hover {
  text-decoration: underline;
}

.legal-page .legal-content address {
  font-style: normal;
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page .legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-page .legal-footer a {
  font-size: 14px;
  color: #7c3aed;
  font-weight: 500;
  text-decoration: none;
}

.legal-page .legal-footer a:hover {
  text-decoration: underline;
}

.legal-page .legal-footer span {
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .legal-page .legal-header h1 {
    font-size: 28px;
  }

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

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

  .legal-page .legal-container {
    padding: 32px 20px 32px;
  }
}
