/* ==========================================================================
   SkyConnect — legal stylesheet (privacy.html + terms-of-service.html)
   Loaded ONLY by legal pages. Defines its own body background so the page
   never renders white-on-white.
   ========================================================================== */

.legal-page {
  background-color: #F7F6F4;
  color: #1F232B;
  font-size: 16px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

* {
  box-sizing: border-box;
}

/* Scope-isolation: guarantee legal section backgrounds are never painted
   over by homepage section styling. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: #1F232B;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.legal-page a {
  color: #475569;
  text-decoration: none;
}

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

/* ---------- Legal header ---------- */

.legal-header {
  background: linear-gradient(160deg, #334155 0%, #475569 100%);
  color: #FFFFFF;
  padding: 56px 0 48px;
  border-bottom: 4px solid #94A3B8;
}

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

.legal-header .header-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #CBD5E1;
  margin-bottom: 14px;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.legal-header .header-sub {
  color: #C6CFDB;
  font-size: 0.98rem;
  max-width: 620px;
}

.legal-header .header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 9px 16px;
  border-radius: 999px;
}

.legal-header .header-back:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* ---------- Legal content ---------- */

.legal-content {
  padding: 48px 0 64px;
}

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

.legal-content section {
  margin-bottom: 44px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #DCDBD6;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
}

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

.legal-content ul,
.legal-content ol {
  color: #3A4150;
  margin: 0 0 18px 22px;
}

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

.legal-content strong {
  color: #1F232B;
}

/* Table of contents */

.legal-toc {
  background-color: #EFEEEA;
  border: 1px solid #DCDBD6;
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 14px;
  font-size: 1rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 34px;
}

.legal-toc li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  break-inside: avoid;
}

/* ---------- Legal footer ---------- */

.legal-footer {
  background-color: #1F232B;
  color: #9AA6B5;
  padding: 40px 0;
  font-size: 0.86rem;
}

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

.legal-footer a {
  color: #CBD5E1;
  font-weight: 600;
}

.legal-footer .footer-links {
  margin-bottom: 14px;
}

.legal-footer .footer-links a {
  margin: 0 12px;
}

@media (max-width: 620px) {
  .legal-toc ol {
    columns: 1;
  }
}
