/* ============================================================
   REDSOAR — LEGAL PAGES STYLESHEET
   Loaded only by /privacy and /terms-of-service.
   Light theme, periwinkle brand, deep ink headings.
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.legal-page {
  background-color: #F8F9FD;
  color: #5A6478;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Legal header ---------- */
.legal-header {
  background-color: #1C2233;
  color: #FFFFFF;
  padding: 64px 0 52px;
}

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

.legal-brand {
  display: inline-block;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
}

.legal-brand:hover {
  color: #E8EBFA;
}

.legal-header h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-top: 26px;
}

.legal-header p {
  color: #C9CEE0;
  margin-top: 12px;
  font-size: 15px;
}

/* ---------- Content layout ---------- */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Table of contents ---------- */
.toc {
  background-color: #FFFFFF;
  border: 1px solid #D9DEEE;
  border-radius: 10px;
  padding: 30px 34px;
  margin: 44px 0 56px;
}

.toc h2 {
  color: #1C2233;
  font-size: 20px;
  font-weight: 800;
}

.toc ol {
  margin-top: 16px;
  padding-left: 22px;
}

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

.toc a {
  color: #7C8FE0;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  color: #6779CF;
}

/* ---------- Body sections ---------- */
.legal-content section {
  margin-bottom: 56px;
}

.legal-content section h2 {
  color: #1C2233;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  scroll-margin-top: 28px;
}

.legal-content section h2 .sec-num {
  color: #7C8FE0;
  margin-right: 12px;
}

.legal-content section h3 {
  color: #1C2233;
  font-size: 18px;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

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

.legal-content strong {
  color: #1C2233;
  font-weight: 700;
}

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

.legal-content a:hover {
  text-decoration: underline;
  color: #6779CF;
}

/* ---------- Legal footer ---------- */
.legal-footer {
  border-top: 1px solid #D9DEEE;
  margin-top: 64px;
  padding: 44px 0;
}

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

.legal-footer a {
  color: #7C8FE0;
  text-decoration: none;
  font-weight: 700;
}

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

.legal-footer p {
  color: #5A6478;
  font-size: 14px;
  margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .legal-header {
    padding: 48px 0 40px;
  }

  .legal-header h1 {
    font-size: 32px;
  }

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

  .toc {
    padding: 24px 22px;
  }
}
