/* ============================================================
   CPG Beyond Inc. - Legal pages stylesheet
   Used ONLY by privacy.html and terms-of-service.html
   Light blueprint theme: warm cream + deep sapphire
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1A1A1A;
  background: #F7F4EE;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1F4E79;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Scope isolation: legal content sections must never inherit
   any colored section background from other stylesheets. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

.legal-header {
  background: #1F4E79;
  border-bottom: 2px solid #1A1A1A;
}

.legal-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.legal-brand:hover {
  text-decoration: none;
}

.legal-chip {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #FCF9F2;
  border-radius: 2px;
  flex: 0 0 auto;
}

.legal-chip::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #1F4E79;
}

.legal-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.legal-brand-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #FCF9F2;
}

.legal-brand-caption {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D6E4F0;
  margin-top: 3px;
}

.legal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FCF9F2;
  border: 1px solid #D6E4F0;
  padding: 7px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

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

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

.legal-title {
  padding: 56px 0 32px;
  border-bottom: 1px solid #2F5D8F;
}

.legal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1F4E79;
  margin-bottom: 14px;
}

.legal-title h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  color: #1F4E79;
  letter-spacing: -0.015em;
}

.legal-updated {
  margin-top: 14px;
  font-size: 14px;
  color: #1A1A1A;
}

/* ---------- Table of contents ---------- */

.toc {
  background: #EAF2FA;
  border: 1px solid #2F5D8F;
  padding: 24px 28px;
  margin: 32px 0 44px;
  position: sticky;
  top: 16px;
  z-index: 5;
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1F4E79;
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  margin: 8px 0;
  font-size: 14px;
}

.toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-weight: 700;
  color: #1F4E79;
  margin-right: 10px;
  font-size: 12px;
}

.toc a {
  color: #1A1A1A;
  font-weight: 600;
}

.toc a:hover {
  color: #1F4E79;
  text-decoration: none;
}

/* ---------- Legal sections ---------- */

.legal-content section {
  padding: 30px 0;
  border-bottom: 1px solid #2F5D8F;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1F4E79;
  margin-bottom: 14px;
  line-height: 1.3;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 18px 0 8px;
}

.legal-content p {
  margin: 12px 0;
  color: #1A1A1A;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 12px 24px;
  color: #1A1A1A;
}

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

.legal-content a {
  color: #1F4E79;
  font-weight: 600;
}

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

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

.legal-footer {
  background: #F7F4EE;
  border-top: 2px solid #1F4E79;
  margin-top: 48px;
}

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

.legal-footer-line {
  font-size: 12px;
  color: #1A1A1A;
  line-height: 1.8;
}

.legal-footer-actions {
  margin-top: 14px;
  font-size: 13px;
}

.legal-footer-actions a {
  color: #1F4E79;
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .legal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-kicker {
    align-self: flex-start;
  }

  .legal-title h1 {
    font-size: 30px;
  }

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

  .toc {
    position: static;
  }
}
