/* ==========================================================================
   ShinePearl — Legal pages stylesheet (privacy.html / terms-of-service.html)
   Dark pearl-and-sea theme, loaded ONLY by legal pages.
   ========================================================================== */

.legal-page {
  background-color: #0F2A2E;
  color: #F1EFE9;
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Scope isolation: never let page-section backgrounds bleed into the legal
   content area, and never touch the header or footer. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page a {
  color: #9FD8C7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  color: #F1EFE9;
}

/* ==========================================================================
   Legal header — always a <div>/<header>, solid background, strong contrast
   ========================================================================== */

.legal-header {
  background-color: #08181B;
  border-bottom: 1px solid rgba(241, 239, 233, 0.18);
  padding: 30px 0;
}

.legal-header__brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #F1EFE9;
  text-decoration: none;
}

.legal-header__brand:hover {
  color: #9FD8C7;
}

.legal-header__home {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B7C9C4;
  text-decoration: none;
}

.legal-header__home:hover {
  color: #9FD8C7;
}

.legal-header__row {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Title band
   ========================================================================== */

.legal-title {
  background-color: #0F2A2E;
  padding: 56px 0 34px;
}

.legal-title h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 700;
  color: #F1EFE9;
  margin: 0 0 12px;
}

.legal-title p {
  color: #B7C9C4;
  font-size: 15px;
  margin: 0;
}

/* ==========================================================================
   Shared constrained containers: max-width MUST pair with auto margin and
   side padding so content never touches the viewport edge.
   ========================================================================== */

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

.legal-content {
  padding: 36px 0 80px;
}

/* ==========================================================================
   Table of contents nav — class selectors only
   ========================================================================== */

.toc {
  margin-bottom: 44px;
}

.toc__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9FD8C7;
  margin: 0 0 16px;
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
}

.toc__link {
  display: inline-block;
  color: #B7C9C4;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(241, 239, 233, 0.14);
}

.toc__link:hover {
  color: #9FD8C7;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.legal-content section {
  margin-bottom: 46px;
  border-bottom: 1px solid rgba(241, 239, 233, 0.12);
  padding-bottom: 40px;
}

.legal-content section:last-of-type {
  border-bottom: none;
}

.legal-content h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: #F1EFE9;
  margin: 0 0 16px;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  color: #9FD8C7;
  margin: 22px 0 10px;
}

.legal-content p {
  color: #B7C9C4;
  margin: 0 0 16px;
}

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

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

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

.legal-content strong {
  color: #F1EFE9;
  font-weight: 600;
}

.legal-content address {
  font-style: normal;
  color: #F1EFE9;
  margin: 0 0 16px;
}

.legal-updated {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9FD8C7;
  border: 1px solid rgba(159, 216, 199, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 14px;
}

/* ==========================================================================
   Legal footer
   ========================================================================== */

.legal-footer {
  background-color: #08181B;
  border-top: 1px solid rgba(241, 239, 233, 0.18);
  padding: 30px 0;
}

.legal-footer__row {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer__links {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}

.legal-footer__links a {
  color: #B7C9C4;
  font-size: 14px;
  text-decoration: none;
}

.legal-footer__links a:hover {
  color: #9FD8C7;
}

.legal-footer p {
  color: #8FA39D;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  .legal-title h1 {
    font-size: 32px;
  }
  .legal-content h2 {
    font-size: 22px;
  }
  .toc__list {
    grid-template-columns: 1fr;
  }
  .legal-content {
    padding-bottom: 56px;
  }
}
