/* ============================================================
   GemLight — Legal Pages Stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html.
   Light aquamarine theme: deep ink on very light aqua-white.
   ============================================================ */

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

.legal-page {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #F4FAFA;
  color: #55727C;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.legal-page a {
  color: #46B5C0;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  color: #15303A;
  line-height: 1.25;
}

.legal-page p {
  color: #55727C;
  margin: 0 0 16px 0;
}

.legal-page ul,
.legal-page ol {
  color: #55727C;
}

/* ---------- Legal header (solid background, strong contrast) ---------- */

.legal-header {
  background-color: #15303A;
  border-bottom: 4px solid #46B5C0;
}

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

.legal-header .legal-brand {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #46B5C0;
  text-decoration: none;
  margin-bottom: 22px;
}

.legal-header .legal-brand:hover {
  color: #DFF1F3;
}

.legal-header h1 {
  font-size: 42px;
  color: #F4FAFA;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.legal-header .legal-updated {
  font-size: 14px;
  color: #DFF1F3;
  margin: 0;
}

/* ---------- Back to homepage link ---------- */

.legal-home-link {
  display: block;
  max-width: 860px;
  margin: 28px auto 0 auto;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  color: #15303A;
}

.legal-home-link a {
  color: #46B5C0;
}

/* ---------- Scope isolation: content sections are transparent ---------- */

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

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

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 56px 24px;
  counter-reset: legal-sec;
}

.legal-content .legal-intro {
  font-size: 18px;
  color: #55727C;
  border-left: 4px solid #46B5C0;
  padding-left: 20px;
  margin-bottom: 40px;
}

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

.legal-content h2 {
  font-size: 26px;
  color: #15303A;
  margin: 0 0 14px 0;
  padding-top: 8px;
  counter-increment: legal-sec;
}

.legal-content h2::before {
  content: counter(legal-sec) ".";
  color: #46B5C0;
  font-weight: 800;
  margin-right: 10px;
}

.legal-content h3 {
  font-size: 19px;
  color: #15303A;
  margin: 22px 0 10px 0;
}

.legal-content h4 {
  font-size: 16px;
  color: #15303A;
  margin: 18px 0 8px 0;
}

.legal-content ul {
  margin: 0 0 16px 0;
  padding-left: 22px;
}

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

.legal-content .legal-lead {
  font-size: 17px;
  font-weight: 600;
  color: #15303A;
  margin-bottom: 12px;
}

.legal-content .legal-meta {
  background-color: #EDF7F8;
  border: 1px solid #C9E6E9;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.legal-content .legal-meta p {
  margin: 0 0 6px 0;
  font-size: 15px;
}

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

.legal-content .legal-meta strong {
  color: #15303A;
}

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

.legal-toc {
  background-color: #EDF7F8;
  border: 1px solid #C9E6E9;
  border-radius: 14px;
  padding: 26px 28px;
  margin: 0 0 44px 0;
}

.legal-toc .toc-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #15303A;
  margin: 0 0 16px 0;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}

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

.legal-toc li a {
  color: #15303A;
  font-size: 15px;
  font-weight: 600;
}

.legal-toc li a:hover {
  color: #46B5C0;
}

/* ---------- Inline emphasis ---------- */

.legal-content .highlight {
  color: #15303A;
  font-weight: 600;
}

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

.legal-footer {
  background-color: #EDF7F8;
  border-top: 1px solid #C9E6E9;
  padding: 32px 24px 40px 24px;
}

.legal-footer .legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.legal-footer p {
  font-size: 13px;
  color: #55727C;
  margin: 0 0 8px 0;
}

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

.legal-footer a:hover {
  color: #15303A;
}

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

@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-content {
    padding: 32px 24px 40px 24px;
  }
}
