[data-theme="dark"] body.terms-home-page {
  --zh-ink: #f6efe4;
  --zh-muted: #d9c7b5;
  --zh-bg: #11191a;
  --zh-panel: #1d2627;
  --zh-surface: #172122;
  --zh-line: rgba(214, 232, 228, 0.2);
  --zh-border: #6f8786;
  --zh-depth: rgba(0, 0, 0, 0.34);
  --zh-cta: #9ad0cf;
  --zh-cta-ink: #102123;
  --zh-teal: #2f7f78;
  --zh-teal-soft: #a8c9c3;
  --zh-ochre: #e4bd58;
  --zh-moss: #6f9a83;
  --zh-plum: #d0bfd3;
  --zh-pink: #dfc1cb;
  --zh-demo-bg: #102123;
  --zh-demo-ink: #f6efe4;
  --zh-soft-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --zh-shadow: 7px 7px 0 rgba(0, 0, 0, 0.42);
}

body.terms-home-page .terms-section-map,
body.terms-home-page .terms-reader,
body.terms-home-page .terms-clauses {
  scroll-margin-top: 120px;
}

body.terms-home-page .terms-section-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.terms-home-page .terms-section-grid .zh-module-card {
  color: #17292c;
  text-decoration: none;
}

body.terms-home-page .terms-section-grid .zh-module-card b {
  font-size: 11px;
}

body.terms-home-page .terms-section-grid .zh-module-card strong {
  font-size: 16px;
}

body.terms-home-page .terms-reader .zh-path-card {
  scroll-margin-top: 120px;
}

body.terms-home-page .terms-clauses .zh-price-card {
  scroll-margin-top: 120px;
}

body.terms-home-page .terms-clauses .zh-price-card h3 {
  font-size: clamp(32px, 3vw, 40px);
}

body.terms-home-page .terms-clauses .zh-price {
  margin: 16px 0 10px;
}

body.terms-home-page .terms-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

[data-theme="dark"] body.terms-home-page .zh-problem-card {
  background: #2f7f78;
  color: #f6efe4;
}

[data-theme="dark"] body.terms-home-page .zh-problem-card h2 {
  color: #f6efe4 !important;
}

[data-theme="dark"] body.terms-home-page .zh-problem-card p:not(.zh-eyebrow) {
  color: #d9ebe4;
}

[data-theme="dark"] body.terms-home-page .zh-price-card.is-featured h3,
[data-theme="dark"] body.terms-home-page .zh-price-card.is-featured .zh-price,
[data-theme="dark"] body.terms-home-page .zh-final-card h2 {
  color: #17292c !important;
}

@media (max-width: 980px) {
  body.terms-home-page .terms-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.terms-home-page .terms-section-grid {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    scroll-snap-type: none !important;
  }

  body.terms-home-page .terms-section-grid .zh-module-card {
    scroll-snap-align: none;
  }

  body.terms-home-page .terms-reader .zh-path-card {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  body.terms-home-page .terms-reader .zh-path-index {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  body.terms-home-page .terms-reader .zh-path-card h3 {
    overflow-wrap: anywhere;
  }

  body.terms-home-page .terms-final-actions,
  body.terms-home-page .terms-final-actions .zh-button {
    width: 100%;
  }
}
