/* ShiftNow — legal pages (privacy + terms). Loaded only by legal pages. */

.legal-page {
  background-color: #0C101C;
  color: #A9B4CC;
}

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

.legal-page body {
  font-size: 16px;
}

.legal-page {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  color: #E9EDF6;
  font-weight: 700;
  line-height: 1.25;
}

/* Every max-width container is centered and padded for narrow screens. */
.legal-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Legal header ---------- */
.legal-header {
  background-color: #141A2A;
  border-bottom: 1px solid #1E2740;
  padding: 40px 0 34px;
}

.legal-brand {
  margin-bottom: 26px;
}

.legal-brand a {
  color: #E9EDF6;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 17px;
}

.legal-header h1 {
  font-size: 40px;
  color: #E9EDF6;
  margin-bottom: 10px;
}

.legal-meta {
  color: #A9B4CC;
  font-size: 14px;
}

/* ---------- Layout: toc + content ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 44px;
  padding-top: 48px;
  padding-bottom: 60px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  background-color: #141A2A;
  border: 1px solid #1E2740;
  border-radius: 10px;
  padding: 22px 20px;
}

.toc-title {
  color: #E9EDF6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc a {
  display: block;
  color: #A9B4CC;
  font-size: 13px;
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.toc a:hover {
  color: #E9EDF6;
  text-decoration: none;
  border-left-color: #3D6BD6;
}

/* Scope isolation: legal sections must never inherit page-level backgrounds. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

.legal-content h2 {
  font-size: 26px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1E2740;
}

.legal-content h3 {
  font-size: 19px;
  margin: 20px 0 10px;
  color: #E9EDF6;
}

.sec-num {
  color: #3D6BD6;
  margin-right: 12px;
}

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

.legal-content p:last-child {
  margin-bottom: 0;
}

/* ---------- Legal footer ---------- */
.legal-footer {
  background-color: #3D6BD6;
  padding: 22px 24px;
  text-align: center;
}

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

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

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .legal-wrap {
    padding: 0 16px;
  }

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

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