.TermsPage {
  --terms-accent: #eb411d;
  --terms-surface: #171717;
  --terms-surface-soft: #202020;
  --terms-border: rgba(255, 255, 255, 0.16);
  --terms-muted: #b9b9b9;
  color: #fff;
}

.TermsPage__intro,
.TermsPage__navigation,
.TermsPage__document {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.TermsPage__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.TermsPage__introText {
  max-width: 760px;
}

.TermsPage__eyebrow,
.TermsPage__navigationTitle,
.TermsSection__label {
  margin: 0 0 12px;
  color: var(--terms-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.TermsPage__summary {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.TermsPage__version {
  margin: 12px 0 0;
  color: var(--terms-muted);
  font-size: 14px;
}

.TermsPage__download {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--terms-accent);
  background: var(--terms-accent);
  color: #fff !important;
  font-family: MBLZ, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 160ms ease, color 160ms ease;
}

.TermsPage__download:hover,
.TermsPage__download:focus-visible {
  background: transparent;
  color: var(--terms-accent) !important;
}

.TermsPage__navigation {
  padding: 30px;
  border: 1px solid var(--terms-border);
  background: var(--terms-surface);
}

.TermsPage__jumpLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.TermsPage__jumpLink {
  display: block;
  padding: 10px 15px;
  border: 1px solid rgba(235, 65, 29, 0.65);
  border-radius: 999px;
  background: rgba(235, 65, 29, 0.07);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.TermsPage__jumpLink:hover,
.TermsPage__jumpLink:focus-visible {
  border-color: var(--terms-accent);
  background: var(--terms-accent);
}

.TermsPage__document {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.TermsSection {
  scroll-margin-top: 24px;
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--terms-border);
  background: var(--terms-surface-soft);
}

.TermsSection__title {
  max-width: 900px;
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
}

.TermsSection__content {
  min-width: 0;
  max-width: 900px;
  font-size: 16px;
  line-height: 1.75;
}

.TermsSection__content h3 {
  margin: 34px 0 14px;
  color: #fff;
  font-size: 21px;
  line-height: 1.3;
}

.TermsSection__content p {
  margin: 0 0 18px;
}

.TermsSection__content ul {
  margin: 0 0 22px;
  padding-left: 24px;
}

.TermsSection__content li {
  margin-bottom: 8px;
}

.TermsSection__clause {
  color: var(--terms-accent);
  font-weight: 700;
}

.TermsSection__content a {
  color: #fff;
  text-decoration-color: var(--terms-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.TermsSection__table {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--terms-border);
  background: #111;
}

.TermsSection__table table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.TermsSection__table th,
.TermsSection__table td {
  padding: 15px;
  border-right: 1px solid var(--terms-border);
  border-bottom: 1px solid var(--terms-border);
  text-align: left;
  vertical-align: top;
}

.TermsSection__table th {
  background: var(--terms-accent);
  color: #fff;
  font-weight: 700;
}

.TermsSection__table th:nth-child(1),
.TermsSection__table td:nth-child(1) {
  width: 34%;
}

.TermsSection__table th:nth-child(2),
.TermsSection__table td:nth-child(2) {
  width: 16%;
}

.TermsSection__table tr:last-child td {
  border-bottom: 0;
}

.TermsSection__top {
  display: inline-block;
  margin-top: 12px;
  color: var(--terms-muted) !important;
  font-size: 14px;
}

@media (max-width: 767px) {
  .TermsPage__intro {
    align-items: stretch;
    flex-direction: column;
  }

  .TermsPage__download {
    align-self: flex-start;
  }

  .TermsPage__navigation {
    padding: 22px;
  }

  .TermsPage__jumpLinks {
    gap: 8px;
  }

  .TermsPage__jumpLink {
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
