/* ===== Legal Stylesheet - Shared by Privacy & Terms Pages ===== */

/* Scope isolation - protect legal pages from homepage section styling */
.legal-page { background: #FDFCF9; color: #222126; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; line-height: 1.8; overflow-x: hidden; }
.legal-page .legal-content section { background-color: transparent !important; }

/* Legal Header */
.legal-header {
  background: linear-gradient(135deg, #12121B 0%, #1A192E 60%, #12121B 100%);
  padding: 4.5rem 0 3.5rem; border-bottom: 1px solid #2A2836; text-align: center;
}
.legal-header h1 { color: #EDECF0; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.legal-header p { color: #A6A4B2; font-size: 1rem; max-width: 640px; margin: 0 auto; }

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

/* Table of Contents */
.legal-toc { background: #F4F2F0; border: 1px solid #E8E6E3; border-radius: 14px; padding: 1.8rem 2rem; margin-bottom: 2.8rem; }
.legal-toc h2 { font-size: 1.1rem; font-weight: 700; color: #222126; margin-bottom: 1rem; }
.legal-toc ol { list-style: none; counter-reset: toc-counter; padding: 0; }
.legal-toc ol li { counter-increment: toc-counter; margin-bottom: 0.4rem; }
.legal-toc ol li::before { content: counter(toc-counter) '.'; color: #00D4FF; font-weight: 700; margin-right: 0.5rem; }
.legal-toc ol li a { color: #4A4856; font-size: 0.93rem; text-decoration: none; transition: color 0.2s; }
.legal-toc ol li a:hover { color: #00D4FF; }

/* Legal Sections */
.legal-section { margin-bottom: 2.4rem; padding-bottom: 2rem; border-bottom: 1px solid #ECE9E5; }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.35rem; font-weight: 700; color: #1A192E; margin-bottom: 1rem; padding-top: 1.2rem; letter-spacing: -0.01em; }
.legal-section h2:first-child { padding-top: 0; }
.legal-section h3 { font-size: 1.05rem; font-weight: 700; color: #2D2B3A; margin: 1.2rem 0 0.6rem; }
.legal-section p { font-size: 0.97rem; color: #4A4856; margin-bottom: 1rem; }
.legal-section ul, .legal-section ol { margin: 0.6rem 0 1rem 1.5rem; }
.legal-section ul li, .legal-section ol li { font-size: 0.95rem; color: #4A4856; margin-bottom: 0.4rem; }
.legal-section strong { color: #222126; }
.legal-section a { color: #00D4FF; text-decoration: underline; }
.legal-section a:hover { color: #FF6B35; }

/* Footer */
.legal-footer { background: #12121B; padding: 2.5rem 0; text-align: center; border-top: 1px solid #2A2836; }
.legal-footer p { color: #6E6C7C; font-size: 0.88rem; margin-bottom: 0.6rem; }
.legal-footer a { color: #00D4FF; text-decoration: none; font-weight: 500; }
.legal-footer a:hover { color: #FF6B35; }
.legal-footer nav { margin-top: 0.6rem; }
.legal-footer nav a { margin: 0 0.8rem; font-size: 0.88rem; }

/* ===== Site Navigation for Legal Pages (same as homepage, but self-contained) ===== */
.legal-page .site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(18,18,27,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid #2A2836; padding: 0.9rem 0; transition: 0.3s;
}
.legal-page .site-nav.scrolled { padding: 0.5rem 0; box-shadow: 0 2px 24px rgba(0,0,0,0.4); }

.legal-page .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
}
.legal-page .nav-logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #00D4FF, #FF6B35);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.legal-page .nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.legal-page .nav-links a { color: #A6A4B2; font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.legal-page .nav-links a:hover { color: #00D4FF; }
.legal-page .nav-cta a {
  background: linear-gradient(135deg, #00D4FF, #0099cc);
  color: #fff !important; padding: 0.55rem 1.5rem; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem; display: inline-block; text-decoration: none;
}
.legal-page .nav-cta a:hover { background: linear-gradient(135deg, #FF6B35, #e55a2b); color: #fff !important; }

.legal-page .nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.legal-page .nav-toggle span { display: block; width: 26px; height: 2.5px; background: #EDECF0; border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
  .legal-page .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(18,18,27,0.98); backdrop-filter: blur(20px); padding: 1.5rem 28px; gap: 1.2rem; border-bottom: 1px solid #2A2836; }
  .legal-page .nav-links.active { display: flex; }
  .legal-page .nav-toggle { display: flex; }
  .legal-header h1 { font-size: 1.8rem; }
}
