/* ============ LEGAL PAGES SHARED STYLES ============ */

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

/* ============ LEGAL PAGE BASE ============ */
.legal-page {
  background-color: #121318;
  color: #F1F1F5;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ============ LEGAL HEADER ============ */
.legal-header {
  background: linear-gradient(135deg, #1C1C23 0%, #181820 100%);
  border-bottom: 1px solid #2A2A38;
  padding: 100px 0 48px;
  text-align: center;
}

.legal-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.legal-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.legal-header .legal-meta {
  font-size: 0.9rem;
  color: #A7A7B5;
}

.legal-header .legal-meta a {
  color: #00D2D3;
  text-decoration: none;
}

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

/* ============ LEGAL CONTENT ============ */
.legal-content {
  padding: 48px 0 64px;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ TABLE OF CONTENTS ============ */
.legal-toc {
  background: #1C1C23;
  border: 1px solid #2A2A38;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2A2A38;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc ol li a {
  font-size: 0.92rem;
  color: #A7A7B5;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============ LEGAL SECTIONS ============ */
.legal-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid #2A2A38;
}

.legal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #E1E1ED;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 0.94rem;
  color: #A7A7B5;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li,
.legal-content ol li {
  font-size: 0.94rem;
  color: #A7A7B5;
  margin-bottom: 8px;
}

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

.legal-content a {
  color: #00D2D3;
  text-decoration: none;
}

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

/* ============ LEGAL FOOTER ============ */
.legal-footer {
  background: #1C1C23;
  border-top: 1px solid #2A2A38;
  padding: 32px 0;
  text-align: center;
}

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

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

.legal-footer a {
  color: #00D2D3;
  text-decoration: none;
  font-weight: 500;
}

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

/* Back to top link */
.back-to-top {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  color: #00D2D3;
  text-decoration: none;
  font-weight: 600;
}

.back-to-top:hover {
  text-decoration: underline;
}
