.terms-of-service-options {
  width: min(940px, calc(100% - 40px));
  margin: 54px auto 0;
  display: flex;
  justify-content: flex-end;
}

.terms-of-service-language-switch {
  display: inline-flex;
  gap: 6px;
  border: 1px solid rgba(215, 219, 231, 0.82);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(31, 36, 48, 0.07);
}

.terms-of-service-language-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text-muted);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.terms-of-service-language-switch button.is-active {
  color: #ffffff;
  background: var(--gradient-main);
  box-shadow: 0 10px 24px rgba(139, 124, 255, 0.22);
}

.terms-of-service {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 96px;
}

.terms-of-service-options ~ .terms-of-service {
  padding-top: 28px;
}

.terms-of-service > div {
  position: relative;
  border: 1px solid rgba(215, 219, 231, 0.82);
  border-radius: 24px;
  padding: 30px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(139, 124, 255, 0.08),
      transparent 210px
    ),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 54px rgba(31, 36, 48, 0.06);
}

.terms-of-service > div + div {
  margin-top: 18px;
}

.terms-of-service > div:first-child {
  overflow: hidden;
  padding: 54px 44px;
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(91, 207, 251, 0.18),
      transparent 250px
    ),
    radial-gradient(
      circle at 12% 92%,
      rgba(255, 126, 219, 0.12),
      transparent 240px
    ),
    linear-gradient(135deg, #ffffff 0%, #f1eeff 50%, #f7fcff 100%);
}

.terms-of-service h1,
.terms-of-service h2 {
  margin: 0;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 0;
}

.terms-of-service h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 5vw, 4.4rem);
  line-height: 1.04;
}

.terms-of-service h2 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.28;
}

.terms-of-service p,
.terms-of-service li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.76;
}

.terms-of-service p {
  margin: 14px 0 0;
}

.terms-of-service > div:first-child p {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 20px;
  border: 1px solid rgba(139, 124, 255, 0.18);
  border-radius: 999px;
  padding: 0 15px;
  color: #7466f2;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(139, 124, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
}

.terms-of-service ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.terms-of-service li {
  position: relative;
  padding-left: 24px;
}

.terms-of-service li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gradient-main);
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.1);
}

@media (max-width: 560px) {
  .terms-of-service-options {
    width: min(100% - 28px, var(--container));
    margin-top: 30px;
    justify-content: stretch;
  }

  .terms-of-service-language-switch {
    width: 100%;
  }

  .terms-of-service-language-switch button {
    flex: 1;
  }

  .terms-of-service {
    width: min(100% - 28px, var(--container));
    padding: 42px 0 64px;
  }

  .terms-of-service-options ~ .terms-of-service {
    padding-top: 18px;
  }

  .terms-of-service > div,
  .terms-of-service > div:first-child {
    border-radius: 22px;
    padding: 24px 20px;
  }

  .terms-of-service > div + div {
    margin-top: 14px;
  }

  .terms-of-service h1 {
    font-size: clamp(2.12rem, 11vw, 2.65rem);
  }

  .terms-of-service h2 {
    font-size: 1.08rem;
  }

  .terms-of-service p,
  .terms-of-service li {
    font-size: 0.92rem;
    line-height: 1.72;
  }
}