#content.terms-page,
#content.terms-page *,
#content.terms-page *::before,
#content.terms-page *::after {
  box-sizing: border-box;
}

#content.terms-page {
  --terms-accent: #ff741f;
  --terms-accent-light: #ff9b55;
  --terms-ink: #f5f5f6;
  --terms-body: #e2e4e8;
  --terms-muted: #b8bdc5;
  --terms-line: rgba(211, 216, 224, 0.2);
  clear: both;
  width: 100%;
  min-height: 0;
  overflow: visible;
  padding: 0 0 56px;
  background:
    radial-gradient(ellipse at 50% 3%, rgba(57, 64, 75, 0.2), transparent 50%),
    linear-gradient(145deg, #111216 0%, #191b20 54%, #111216 100%);
  color: var(--terms-body);
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
}

#content.terms-page p {
  line-height: 1.7;
}

.terms-page :focus-visible {
  outline: 3px solid var(--terms-accent-light);
  outline-offset: 3px;
}

.terms-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.terms-heading {
  padding: 34px 8px 0;
}

.terms-heading h1 {
  margin: 0;
  color: var(--terms-ink);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.terms-heading__accent {
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 13px;
  border-radius: 999px;
  background: var(--terms-accent);
}

.terms-document {
  margin-top: 25px;
}

.terms-document > .well {
  margin: 0;
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid var(--terms-line);
  border-radius: 10px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow: none;
  color: var(--terms-body);
}

.terms-document #terms {
  color: var(--terms-body);
  font-size: 0.96rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.terms-document #terms > div[style*="float"] {
  display: flex;
  float: none !important;
  justify-content: flex-end;
  margin: 0 0 22px;
}

.terms-document #terms > div[style*="float"] a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 116, 31, 0.7);
  border-radius: 5px;
  background: rgba(255, 116, 31, 0.08);
  color: var(--terms-accent-light);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.terms-document #terms > div[style*="float"] a:hover {
  background: var(--terms-accent);
  color: #17191d;
}

.terms-document #terms .terms-preview-note {
  margin: 0 0 1.5em;
  padding: 12px 15px;
  border: 1px solid rgba(255, 116, 31, 0.38);
  border-left: 3px solid var(--terms-accent);
  border-radius: 6px;
  background: rgba(255, 116, 31, 0.07);
  color: var(--terms-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.terms-document #terms .terms-preview-note strong {
  margin-right: 5px;
  color: var(--terms-accent-light);
  letter-spacing: 0.035em;
}

.terms-document #terms h1,
.terms-document #terms h2,
.terms-document #terms h3,
.terms-document #terms h4,
.terms-document #terms h5,
.terms-document #terms h6 {
  margin: 1.5em 0 0.55em;
  color: var(--terms-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.terms-document #terms h1 {
  font-size: 1.6rem;
}

.terms-document #terms h2 {
  font-size: 1.35rem;
}

.terms-document #terms h3 {
  font-size: 1.12rem;
}

.terms-document #terms h4,
.terms-document #terms h5,
.terms-document #terms h6 {
  font-size: 1rem;
}

.terms-document #terms > :first-child {
  margin-top: 0;
}

.terms-document #terms p {
  margin: 0 0 1em;
  color: var(--terms-body);
  font-size: inherit;
  line-height: inherit;
}

.terms-document #terms ul,
.terms-document #terms ol {
  margin: 0 0 1.1em;
  padding-left: 1.5rem !important;
}

.terms-document #terms li {
  padding-left: 0.15rem;
  color: var(--terms-body);
  line-height: 1.65;
}

.terms-document #terms li + li {
  margin-top: 0.35em;
}

.terms-document #terms a {
  color: var(--terms-accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(255, 155, 85, 0.55);
  text-underline-offset: 3px;
}

.terms-document #terms a:hover {
  color: #ffc095;
}

.terms-document #terms strong,
.terms-document #terms b {
  color: var(--terms-ink);
}

.terms-document #terms blockquote {
  margin: 1.25em 0;
  padding: 0.15em 0 0.15em 1.15em;
  border-left: 3px solid var(--terms-accent);
  color: var(--terms-muted);
}

.terms-document #terms hr {
  margin: 1.7em 0;
  border: 0;
  border-top: 1px solid var(--terms-line);
}

.terms-document #terms table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.25em 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.terms-document #terms th,
.terms-document #terms td {
  min-width: 110px;
  padding: 9px 11px;
  border: 1px solid var(--terms-line);
  color: var(--terms-body);
  text-align: left;
  vertical-align: top;
}

.terms-document #terms th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--terms-ink);
  font-weight: 700;
}

.terms-document #terms pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 13px 15px;
  border: 1px solid var(--terms-line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--terms-body);
}

.terms-document #terms img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  #content.terms-page {
    padding-bottom: 42px;
  }

  .terms-shell {
    width: min(620px, calc(100% - 36px));
  }

  .terms-heading {
    padding: 25px 4px 0;
  }

  .terms-heading h1 {
    font-size: clamp(1.8rem, 7vw, 2.25rem);
  }

  .terms-document {
    margin-top: 21px;
  }

  .terms-document > .well {
    padding: 20px 18px;
  }

  .terms-document #terms {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .terms-shell {
    width: calc(100% - 28px);
  }

  .terms-document > .well {
    padding: 18px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-page *,
  .terms-page *::before,
  .terms-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
