* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #12241F;
  background-color: #F4FAF8;
  overflow-x: hidden;
}

/* ---------- Legal page header ---------- */
.legal-header {
  background-color: #156E6E;
  padding: 64px 24px 60px;
}

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

.legal-home {
  display: inline-block;
  color: #CBE8E0;
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 18px;
  text-decoration: none;
  margin-bottom: 26px;
}

.legal-home:hover {
  color: #FFFFFF;
}

.legal-kicker {
  margin: 0 0 10px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.legal-header h1 {
  margin: 0 0 14px;
  color: #FFFFFF;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 44px;
  line-height: 1.15;
}

.legal-updated {
  margin: 0;
  color: #CBE8E0;
  font-size: 15px;
}

/* ---------- Legal content ---------- */
.legal-content {
  padding: 56px 0 24px;
}

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

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

.legal-content section {
  margin-bottom: 56px;
  scroll-margin-top: 30px;
}

.legal-content h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid #156E6E;
  color: #12241F;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 30px;
  line-height: 1.25;
}

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

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #12241F;
}

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

.legal-content strong {
  color: #156E6E;
}

.legal-content a {
  color: #156E6E;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #0F5757;
}

/* ---------- Table of contents ---------- */
.toc {
  margin-bottom: 56px;
  padding: 30px 34px;
  background-color: #CBE8E0;
  border: 2px solid #156E6E;
  border-radius: 16px;
}

.toc h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: #12241F;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 24px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 48px;
}

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

.toc a {
  color: #156E6E;
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover {
  text-decoration: underline;
}

/* ---------- Legal footer ---------- */
.legal-footer {
  background-color: #12241F;
  padding: 40px 24px 44px;
  margin-top: 48px;
}

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

.legal-footer .brand {
  display: inline-block;
  color: #CBE8E0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  text-decoration: none;
  margin-bottom: 14px;
}

.legal-footer .brand:hover {
  color: #FFFFFF;
}

.legal-footer p {
  margin: 0;
  color: #CBE8E0;
  font-size: 14px;
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .legal-header {
    padding: 44px 12px 40px;
  }

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

  .legal-content {
    padding-top: 40px;
  }

  .toc ol {
    columns: 1;
  }

  .toc {
    padding: 22px 24px;
  }
}
