/* ============================================================
   SWIFTLINK — Shared Legal Stylesheet
   Loaded by privacy.html and terms-of-service.html ONLY.
   ============================================================ */

.legal-page {
  background-color: #0D1117;
  color: #E9E7E0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* --- Legal header (NOT a section) --- */
.legal-header {
  background-color: #11161D;
  border-bottom: 1px solid #232B35;
  padding: 40px 0 36px;
}

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

.legal-header .crumbs {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #94A3B8;
  margin-bottom: 14px;
}

.legal-header .crumbs a {
  color: #F59E0B;
  text-decoration: none;
}

.legal-header .crumbs a:hover {
  color: #FBBF24;
}

.legal-header h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #F59E0B;
  margin: 0 0 12px;
  line-height: 1.15;
}

.legal-header .subtitle {
  color: #C6C2B8;
  font-size: 16px;
  max-width: 640px;
  margin: 0;
}

.legal-header .effective {
  margin-top: 16px;
  font-size: 13px;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

/* --- Table of contents --- */
.legal-toc {
  border-bottom: 1px solid #232B35;
  background-color: #0D1117;
}

.legal-toc .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 24px;
}

.legal-toc h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94A3B8;
  margin: 0 0 14px;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 36px;
}

.legal-toc ol li {
  margin-bottom: 9px;
  break-inside: avoid;
}

.legal-toc ol li a {
  color: #C6C2B8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-toc ol li a:hover {
  color: #F59E0B;
}

/* --- Legal content --- */
.legal-content {
  padding: 48px 0 72px;
}

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

/* Scope isolation: never paint over legal text with dark section backgrounds */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #E9E7E0;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #232B35;
  line-height: 1.3;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #F59E0B;
  margin: 22px 0 10px;
  line-height: 1.4;
}

.legal-content p {
  color: #C6C2B8;
  font-size: 16px;
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  color: #C6C2B8;
  font-size: 16px;
  margin: 0 0 16px;
  padding-left: 22px;
}

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

.legal-content strong {
  color: #E9E7E0;
}

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

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

/* --- Legal footer --- */
.legal-footer {
  background-color: #0A0E13;
  border-top: 3px solid #F59E0B;
  padding: 32px 0;
}

.legal-footer .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer p {
  color: #64748B;
  font-size: 13px;
  margin: 0;
}

.legal-footer .back-link {
  color: #F59E0B;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-footer .back-link:hover {
  color: #FBBF24;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }
  .legal-header h1 {
    font-size: 32px;
  }
}
