/* ===== HJ Voyage - Legal Pages Stylesheet ===== */

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

.legal-page {
  background: #FFFFFF;
  color: #1E293B;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.8;
  padding-top: 72px;
}

/* Legal content container with centered max-width */
.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Legal page header - DIV/HEADER element with solid background */
.legal-page .legal-header {
  background: linear-gradient(160deg, #0B0D17 0%, #1A1145 100%);
  padding: 60px 24px 48px;
  text-align: center;
  position: relative;
}

.legal-page .legal-header h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px;
}

.legal-page .legal-header .legal-date {
  color: #94A3B8;
  font-size: 0.9rem;
}

/* Table of Contents */
.legal-toc {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 40px 0;
}

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

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

.legal-toc ol li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.legal-toc ol li a {
  color: #6366F1;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-toc ol li a:hover {
  color: #4F46E5;
  text-decoration: underline;
}

/* Main content sections */
.legal-page .legal-content {
  padding: 60px 0 80px;
}

.legal-page .legal-content section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #E2E8F0;
}

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

.legal-page .legal-content h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B0D17;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #EEF2FF;
}

.legal-page .legal-content p {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-page .legal-content ul {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page .legal-content ul li {
  margin-bottom: 8px;
}

.legal-page .legal-content a {
  color: #6366F1;
  text-decoration: none;
}

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

.legal-page .legal-content strong {
  color: #0B0D17;
}

/* Back to home link */
.legal-back-home {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #E2E8F0;
}

.legal-back-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6366F1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.legal-back-home a:hover {
  color: #4F46E5;
}

/* Legal footer */
.legal-footer {
  background: #0B0D17;
  padding: 32px 24px;
  text-align: center;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-footer p {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #6366F1;
  text-decoration: none;
  font-size: 0.85rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .legal-page .legal-header h1 {
    font-size: 1.8rem;
  }

  .legal-page .legal-content h2 {
    font-size: 1.25rem;
  }

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