/* Terms and Conditions page: typography, contents, warnings, print. */

.terms-page .prose {
  max-width: 760px;
}

.terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--muted);
  font-weight: 600;
}

.terms-meta span {
  display: inline-block;
}

.terms-version {
  display: inline-block;
  background: var(--chip-bg);
  color: var(--purple-deep);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 800;
}

.terms-note {
  background: #FFF6E3;
  border: 1px solid #E9C46A;
  color: #6E4300;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: 28px;
  max-width: 760px;
}

.terms-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px 22px 8px;
  margin: 0 0 36px;
  max-width: 760px;
}

.terms-toc h2 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin: 0 0 12px;
}

.terms-toc ol {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.terms-toc li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.terms-toc li:first-child {
  border-top: 0;
}

.terms-toc a {
  display: block;
  padding: 9px 0;
  font-size: 14.5px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
  color: var(--purple);
  text-decoration: underline;
}

.terms-doc {
  max-width: 760px;
  margin-bottom: 72px;
}

.terms-doc h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 36px 0 12px;
  padding-top: 8px;
  scroll-margin-top: 88px;
}

.terms-doc h3 {
  font-size: 16.5px;
  line-height: 24px;
  font-weight: 800;
  color: var(--purple-deep);
  margin: 22px 0 8px;
  scroll-margin-top: 88px;
}

.terms-doc p,
.terms-doc li {
  font-size: 15.5px;
  line-height: 25px;
  color: var(--ink);
  margin-bottom: 12px;
}

.terms-doc ol,
.terms-doc ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.terms-doc li + li {
  margin-top: 6px;
}

.terms-doc .clause {
  margin: 0 0 12px;
}

.terms-doc .clause-num {
  font-weight: 800;
  color: var(--purple-deep);
  margin-right: 6px;
}

.tbc {
  background: #F4F0FE;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
  color: var(--purple-deep);
  white-space: nowrap;
}

.terms-warning {
  background: #FFF4EC;
  border: 1.5px solid #F4A574;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 20px;
}

.terms-warning p {
  margin-bottom: 8px;
}

.terms-warning p:last-child {
  margin-bottom: 0;
}

.terms-warning strong {
  color: #9A3412;
}

.terms-contact a {
  font-weight: 700;
}

@media print {
  .skip-link,
  .site-header .nav-desktop,
  .site-header .nav-menu,
  .header-actions,
  .chat-widget,
  .footer-stores,
  .footer-social,
  .footer-follow,
  .footer-broker {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer {
    background: #fff;
    color: #000;
    box-shadow: none;
    padding: 12px 0;
  }

  .site-footer {
    border-top: 1px solid #ccc;
  }

  .terms-note,
  .terms-warning,
  .terms-toc {
    box-shadow: none;
    break-inside: avoid;
  }

  .terms-doc h2 {
    break-after: avoid;
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .page-hero {
    padding-top: 16px;
  }
}
