/* ============================================================
   Acoderia LLC — shared legal stylesheet
   Used by privacy.html and terms-of-service.html only.
   ============================================================ */

.legal-page {
  background-color: #F4F2EE;
  color: #232734;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.legal-page * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============ Legal header ============ */
.legal-header {
  background: linear-gradient(135deg, #0E3A99 0%, #1448B3 45%, #0E7C5B 100%);
  padding: 72px 0 64px;
}

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

.legal-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F0A868;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.legal-header .legal-sub {
  font-size: 16px;
  color: #D9E2F7;
  max-width: 640px;
}

/* ============ Legal body ============ */
.legal-content {
  padding: 56px 0 64px;
}

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

.legal-content section {
  background-color: transparent !important;
  margin-bottom: 44px;
}

.legal-content h2 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: #1448B3;
  margin-bottom: 14px;
  padding-top: 12px;
}

.legal-content h3 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  color: #141821;
  margin: 22px 0 10px;
}

.legal-content p {
  color: #3B4250;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  color: #3B4250;
  margin: 0 0 16px 22px;
  padding-left: 8px;
}

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

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

.legal-content a {
  color: #1448B3;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #0E3A99;
}

/* ============ Table of contents ============ */
.legal-toc {
  background-color: #FFFFFF;
  border: 1px solid #E5E2DA;
  border-left: 4px solid #E85D04;
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 40px;
}

.legal-toc .toc-title {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #141821;
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
  font-size: 15px;
}

.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #E85D04;
  margin-right: 10px;
}

.legal-toc a {
  color: #3B4250;
  text-decoration: none;
  font-weight: 500;
}

.legal-toc a:hover {
  color: #1448B3;
}

/* ============ Legal footer ============ */
.legal-footer {
  background-color: #12161F;
  color: #EDF1F7;
  padding: 48px 0 0;
}

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

.legal-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.legal-footer .footer-brand {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.legal-footer p {
  font-size: 14px;
  color: #A9B2C4;
}

.legal-footer h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.legal-footer a {
  display: block;
  font-size: 14px;
  color: #A9B2C4;
  text-decoration: none;
  margin-bottom: 10px;
}

.legal-footer a:hover {
  color: #FFFFFF;
}

.legal-footer .footer-bottom {
  border-top: 1px solid #2A3346;
  padding: 20px 0;
  font-size: 13px;
  color: #A9B2C4;
}

@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 34px;
  }

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

  .legal-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
