/* ===== LEGAL STYLESHEET ===== */
/* Shared styles for privacy.html and terms-of-service.html */

.legal-page {
  background: #0A0C12;
  color: #D1D5DB;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCOPE ISOLATION — prevent homepage section ID styling from leaking ===== */
.legal-page .legal-content section,
.legal-page .legal-content #services,
.legal-page .legal-content #contact,
.legal-page .legal-content #about,
.legal-page .legal-content #features,
.legal-page .legal-content #hero,
.legal-page .legal-content #stats,
.legal-page .legal-content #process,
.legal-page .legal-content #solutions,
.legal-page .legal-content #approach,
.legal-page .legal-content #partners,
.legal-page .legal-content #faq,
.legal-page .legal-content #cta,
.legal-page .legal-content #testimonials,
.legal-page .legal-content #how-it-works,
.legal-page .legal-content #work,
.legal-page .legal-content #expertise {
  background-color: transparent !important;
  background: transparent !important;
  color: inherit !important;
}

/* ===== LEGAL HEADER (must be <header> or <div>, NOT <section>) ===== */
.legal-header {
  background: linear-gradient(135deg, #0E1018 0%, #131620 100%);
  border-bottom: 1px solid #1F2233;
  padding: 48px 0;
  text-align: center;
}
.legal-header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-header .legal-breadcrumb {
  font-size: 0.85rem;
  color: #6366F1;
  margin-bottom: 12px;
}
.legal-header .legal-breadcrumb a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.3s;
}
.legal-header .legal-breadcrumb a:hover { color: #6366F1; }
.legal-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #F9FAFB;
  letter-spacing: -0.5px;
}
.legal-header .legal-meta {
  font-size: 0.9rem;
  color: #6B7280;
  margin-top: 8px;
}

/* ===== MAIN CONTENT ===== */
.legal-content {
  padding: 56px 0 80px;
}
.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TABLE OF CONTENTS ===== */
.legal-toc {
  background: #131620;
  border: 1px solid #1F2233;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
}
.legal-toc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F9FAFB;
  margin-bottom: 16px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  display: grid;
  gap: 8px;
}
.legal-toc ol li {
  counter-increment: toc-counter;
}
.legal-toc ol li a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.3s;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.legal-toc ol li a::before {
  content: counter(toc-counter) ".";
  color: #6366F1;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 28px;
}
.legal-toc ol li a:hover { color: #6366F1; }

/* ===== LEGAL SECTIONS ===== */
.legal-content section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1F2233;
}
.legal-content section:last-child { border-bottom: none; margin-bottom: 0; }
.legal-content section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F3F4F6;
  margin-bottom: 16px;
  padding-top: 8px;
  letter-spacing: -0.3px;
}
.legal-content section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #E5E7EB;
  margin: 18px 0 10px;
}
.legal-content section p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #9CA3AF;
  line-height: 1.85;
}
.legal-content section ul,
.legal-content section ol {
  margin: 12px 0 16px 20px;
  color: #9CA3AF;
  font-size: 0.95rem;
  line-height: 1.85;
}
.legal-content section ul li,
.legal-content section ol li {
  margin-bottom: 6px;
}
.legal-content section a {
  color: #818CF8;
  text-decoration: underline;
}

/* ===== BACK TO TOP ===== */
.legal-back-top {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1F2233;
}
.legal-back-top a {
  color: #6366F1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.legal-back-top a:hover { color: #818CF8; }

/* ===== LEGAL FOOTER ===== */
.legal-footer {
  background: #0E1018;
  border-top: 1px solid #1F2233;
  padding: 32px 0;
  text-align: center;
}
.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-footer p {
  color: #6B7280;
  font-size: 0.85rem;
}
.legal-footer a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.3s;
}
.legal-footer a:hover { color: #6366F1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .legal-header h1 { font-size: 1.8rem; }
  .legal-content section h2 { font-size: 1.25rem; }
  .legal-toc { padding: 20px; }
  .legal-content { padding: 40px 0 60px; }
}
