body[class~="404body"] {
  min-height: 100svh;
}

body[class~="404body"] .error-page__main {
  min-height: auto;
  display: block;
}

body[class~="404body"] .error-links {
  width: 100vw;
  max-width: none;
  margin: 0 calc(50% - 50vw) !important;
  position: relative;
  z-index: 3;
  background: var(--bg) !important;
  border-radius: var(--section-radius) var(--section-radius) 0 0 !important;
  overflow: hidden !important;
}

.error-links {
  width: 100vw;
  max-width: none;
  margin: 0 calc(50% - 50vw) !important;
  position: relative;
  z-index: 3;
  background: var(--bg) !important;
  border-radius: var(--section-radius) var(--section-radius) 0 0 !important;
  overflow: hidden !important;
}

.error-links__inner {
  width: var(--site-width);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.25rem);
  justify-items: center;
}

.error-links__grid {
  width: min(100%, 40rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  justify-items: center;
}

.error-links__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.14rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.08em;
  text-decoration-skip-ink: none;
  text-decoration-color: currentColor;
}

.error-links__link:hover,
.error-links__link:focus-visible {
  color: currentColor;
  opacity: 0.7;
}

body.terms-page,
body.thank-you-page,
body.error-page {
  background-image: none;
}

body.terms-page .page-hero__content {
  width: var(--site-width);
  justify-items: start;
  text-align: left;
  gap: clamp(1rem, 2vw, 1.35rem);
}

body.terms-page .page-hero__title {
  width: 100%;
  max-width: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.terms-page .page-hero__sub {
  margin-inline: 0;
  width: min(100%, 40rem);
  max-width: 40rem;
  font-size: clamp(1rem, 0.55vw + 0.96rem, 1.18rem);
  line-height: 1.5;
}

.terms {
  --section-padding-top: clamp(1.35rem, 3vw, 2.25rem);
  width: 100vw;
  max-width: none;
  margin: 0 calc(50% - 50vw) !important;
  position: relative;
  z-index: 3;
  background: var(--bg) !important;
  border-radius: var(--section-radius) var(--section-radius) 0 0 !important;
  overflow: hidden !important;
}

.terms__inner {
  width: var(--site-width);
  margin-inline: auto;
  padding-inline: 0;
}

.terms__inner {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.1rem);
  justify-items: start;
}

.terms__article {
  width: var(--site-width);
}

.terms__meta,
.terms__content {
  width: min(100%, 62rem);
  max-width: 62rem;
}

.terms__meta {
  display: flex;
}

.terms__meta {
  flex-wrap: wrap;
  gap: 1rem;
}

.terms__toc {
  justify-self: start;
}

.terms-page .terms__toc .blog-toc__list a {
  font-weight: 900;
}

.terms__badge {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
}

.terms__content {
  display: grid;
  gap: clamp(1.85rem, 3vw, 2.55rem);
}

.terms__card {
  display: grid;
  gap: 0.85rem;
  scroll-margin-top: 8rem;
}

.terms__h2,
.terms__p {
  margin: 0;
}

.terms__h2 {
  color: var(--text);
  font-size: clamp(1.45rem, 1.8vw + 1rem, 2.2rem);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.terms__p {
  max-width: none;
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.15rem);
  line-height: 1.75;
  opacity: 0.72;
}

.terms__link {
  font-weight: 900;
  text-decoration: none;
}

.terms__link:hover,
.terms__link:focus-visible {
  color: currentColor;
  text-decoration-line: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.08em;
  text-decoration-skip-ink: none;
  text-decoration-color: currentColor;
  opacity: 1;
}

.terms-page .terms__card#questions .terms__h2,
.terms-page .terms__card#questions .terms__p,
.terms-page .terms__card#questions .terms__link {
  color: var(--text);
}

.terms-page .terms__card#questions .terms__p {
  max-width: none;
  opacity: 1;
}

.terms__card {
  border-radius: var(--site-radius);
}

@media (max-width: 1366px) {
  .error-page .error-links__inner {
    justify-items: start;
  }

  .error-page .error-links__grid {
    width: 100%;
    justify-items: start;
  }

  .error-page .error-links__link {
    justify-content: flex-start;
  }

  .terms__content {
    gap: clamp(1.4rem, 2.6vw, 1.95rem);
  }
}
