/* ============================================================
   Yes Diadem Incorporated — legal pages stylesheet
   Privacy Policy / Terms of Service (load this file only)
   ============================================================ */

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

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

.legal-page {
  background-color: #F8F7F4;
}

/* Scope isolation: only the inner legal content, never the page header or footer */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

a:hover {
  text-decoration: underline;
}

/* ---------------- Legal page masthead (header element) ---------------- */

.legal-header {
  background-color: #1E3F8F;
  background-image: linear-gradient(120deg, #1E3F8F 0%, #2B55A8 100%);
  border-bottom: 3px solid #1A1F2E;
  padding: 56px 0 52px;
}

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

.legal-header .legal-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A8BCDC;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.legal-header .legal-sub {
  font-size: 16px;
  color: #E6DCCB;
  max-width: 720px;
}

/* ---------------- Layout shell ---------------- */

.legal-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

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

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  background-color: #FFFFFF;
  border: 1px solid #1E3F8F;
  padding: 22px 20px;
}

.toc-heading {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1E3F8F;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #1A1F2E;
  padding: 4px 0;
}

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

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

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

.legal-content .legal-intro {
  font-size: 18px;
  line-height: 1.7;
  color: #1A1F2E;
  margin-bottom: 40px;
}

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

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

.legal-content h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: #1E3F8F;
  margin-bottom: 14px;
  padding-top: 6px;
}

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

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

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

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

.legal-content .legal-note {
  background-color: #E6DCCB;
  border-left: 4px solid #1E3F8F;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
}

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

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

.legal-footer {
  background-color: #1A1F2E;
  padding: 40px 0 34px;
}

.legal-footer .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  font-size: 14px;
  color: #A8BCDC;
  margin-bottom: 10px;
}

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

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

.legal-footer .legal-footer-line {
  border-top: 1px solid #3A4157;
  padding-top: 18px;
  margin-top: 18px;
  font-size: 13px;
  color: #8FA0BD;
}

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

@media (max-width: 900px) {
  .legal-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0 56px;
  }

  .toc {
    position: static;
  }

  .legal-content .container {
    padding: 0 24px;
  }

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

@media (max-width: 560px) {
  .legal-header {
    padding: 44px 0 40px;
  }

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

  .legal-content .container {
    padding: 0 16px;
  }
}
