.terms {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: white;
  background: linear-gradient(180deg, #1c1921 0%, #17121d 100%);
}

.terms-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  display: flex;
}

.terms-container {
  background: linear-gradient(180deg, #1c1921 0%, #17121d 100%);
  padding: 30px;
  border-radius: 30px;
  max-width: 90%;
  max-height: 90%;
  margin: 0 25px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.terms-content {
  overflow: auto;
  max-height: 70vh;
  padding-right: 8px;
}

.terms-container h2 {
  margin-top: 0;
  color: var(--color-accent);
}

.terms-content h2 {
  margin-top: 20px;
}

.terms-container p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 160%;
}

.terms-content::-webkit-scrollbar {
  width: 6px;
}

.terms-content::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.left-bg,
.right-bg {
  position: absolute;
  width: 640px;
  height: 640px;
  filter: blur(150px);
  top: 50%;
  left: 50%;
  transform: translate(-70%, -50%);
  background: radial-gradient(circle, #602be073, transparent);
  z-index: 0;
}

.right-bg {
  right: 50%;
  left: auto;
  transform: translate(70%, -50%);
  background: radial-gradient(circle, #1abdab9c, transparent);
}

@media (max-width: 576px) {
  .terms {
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    border-radius: 0;
    border: none;
  }

  .left-bg,
  .right-bg {
    display: none;
  }
}