/* Legal pages align with the current CredShields tokenized theme. */

.legal-page {
  background:
    linear-gradient(180deg, rgba(168, 255, 69, 0.10) 0%, rgba(168, 255, 69, 0) 300px),
    var(--bg);
}

.legal-page .tos_section {
  padding: 96px 0 112px;
  border-bottom: 1.5px solid var(--border-lt);
}

.legal-page .tos_section .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-page .tos_section .row,
.legal-page .tos_section [class*="col-"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.legal-page .tos_head {
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1.5px solid var(--border-lt);
}

.legal-page .tos_head h6 {
  margin: 0 0 16px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-page .tos_head h2 {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-page .tos_head .part_two {
  color: var(--green);
}

.legal-page .tos_head p {
  margin-top: 20px;
  color: var(--fg-4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.legal-page .tos_txt_wrap {
  max-width: 820px;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.78;
}

.legal-page .tos_txt_wrap h2,
.legal-page .tos_txt_wrap h3,
.legal-page .tos_txt_wrap h4,
.legal-page .tos_txt_wrap h5 {
  margin: 40px 0 14px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-page .tos_txt_wrap h2 { font-size: 20px; }
.legal-page .tos_txt_wrap h3 { font-size: 17px; }
.legal-page .tos_txt_wrap h4,
.legal-page .tos_txt_wrap h5 { font-size: 15px; }

.legal-page .tos_txt_wrap p,
.legal-page .tos_txt_wrap li {
  margin: 0 0 18px;
}

.legal-page .tos_txt_wrap h2 + br,
.legal-page .tos_txt_wrap h3 + br,
.legal-page .tos_txt_wrap h4 + br,
.legal-page .tos_txt_wrap h5 + br {
  display: none;
}

.legal-page .tos_txt_wrap a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .tos_txt_wrap ul,
.legal-page .list_privacy {
  list-style: disc;
  margin: 8px 0 24px 24px;
  padding: 0;
}

.legal-page .tos_txt_wrap li,
.legal-page .list_item_privacy {
  padding-left: 6px;
}

.legal-page .tos_txt_wrap strong {
  color: var(--fg);
  font-weight: 700;
}

.legal-page .uui-text-rich-text,
.legal-page .w-richtext {
  color: inherit;
}

@media (max-width: 700px) {
  .legal-page .tos_section {
    padding: 64px 0 80px;
  }

  .legal-page .tos_section .container {
    padding: 0 20px;
  }

  .legal-page .tos_head {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .legal-page .tos_head h2 {
    font-size: 42px;
  }

  .legal-page .tos_txt_wrap {
    font-size: 15.5px;
    line-height: 1.72;
  }
}
