body {
  background: #35383d;
  color: #f0eee9;
}

body::before,
body::after {
  display: none;
}

.terms-page {
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  background: #35383d;
}

.terms-document {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid #5a5e65;
  border-radius: 16px;
  background: #404349;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.terms-heading {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #676b72;
}

.terms-heading h1 {
  margin: 0;
  color: #fffdf8;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.1;
}

.terms-heading p:last-child {
  margin-bottom: 0;
  color: #c9c8c4;
}

.terms-kicker {
  margin: 0 0 .55rem;
  color: #dfc18e;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terms-document section {
  margin-top: 2.7rem;
  scroll-margin-top: 100px;
}

.terms-document h2 {
  margin: 0 0 .85rem;
  color: #fffdf8;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.3;
}

.terms-document p,
.terms-document li,
.terms-document dd {
  color: #e4e2dd;
}

.terms-document p {
  margin: .75rem 0;
}

.terms-document ul {
  margin: .8rem 0 1.25rem;
  padding-left: 1.4rem;
}

.terms-document li + li {
  margin-top: .35rem;
}

.terms-document a {
  color: #f0cb8d;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.terms-document a:hover,
.terms-document a:focus-visible {
  color: #ffe2ad;
}

.terms-contacts {
  margin: 1rem 0 1.5rem;
}

.terms-contacts > div {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid #5e6269;
}

.terms-contacts dt {
  color: #c9c8c4;
  font-weight: 650;
}

.terms-contacts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .terms-contacts > div {
    grid-template-columns: 1fr;
    gap: .15rem;
  }
}
