.terms-page {
  background: #eef6f5;
}

.terms-hero {
  padding: 5.6rem 0 1.7rem;
  background:
    radial-gradient(circle at 22% 25%, rgba(31, 188, 174, 0.22), transparent 32rem),
    linear-gradient(135deg, #07111d 0%, #102f3c 100%);
  color: #ffffff;
}

.terms-hero__grid {
  display: grid;
  gap: 0;
}

.terms-hero__copy,
.terms-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(12, 31, 48, 0.96), rgba(24, 56, 66, 0.92));
  box-shadow: 0 22px 48px rgba(5, 18, 30, 0.18);
}

.terms-hero__copy {
  padding: 1.35rem;
  border-radius: 24px;
}

.terms-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  line-height: 1.02;
  color: #ffffff;
}

.terms-hero p,
.terms-card p,
.terms-card li {
  color: rgba(255, 255, 255, 0.78);
}

.terms-hero__copy p {
  max-width: 52rem;
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.terms-section {
  padding: 2.4rem 0 4rem;
}

.terms-layout {
  display: grid;
  gap: 1rem;
}

.terms-toc {
  display: none;
}

.terms-content {
  display: grid;
  gap: 1rem;
}

.terms-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border-radius: 22px;
}

.terms-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #14b8a6, #ffd54f);
}

.terms-card h2 {
  margin: 0 0 0.85rem;
  color: #ffffff;
  font-size: clamp(1.45rem, 5vw, 2.15rem);
  line-height: 1.15;
}

.terms-card p {
  margin: 0.75rem 0 0;
  line-height: 1.75;
}

.terms-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.terms-list li {
  position: relative;
  min-height: 1.5rem;
  padding-left: 1.7rem;
  line-height: 1.6;
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.74rem;
  height: 0.74rem;
  border-radius: 999px;
  background: #ffd54f;
  box-shadow: 0 0 0 5px rgba(255, 213, 79, 0.1);
}

.terms-contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.terms-contact strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.terms-contact span,
.terms-contact a {
  color: rgba(255, 255, 255, 0.78);
}

.terms-contact a {
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 980px) {
  .terms-hero {
    padding-top: 5.9rem;
    padding-bottom: 2rem;
  }

  .terms-hero__grid {
    display: block;
    width: min(calc(100% - 3rem), 980px);
  }

  .terms-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 13.5rem;
    padding: 1.75rem 2rem;
  }

  .terms-hero h1 {
    white-space: nowrap;
  }

  .terms-hero__copy p {
    font-size: 1.08rem;
  }

  .terms-section {
    padding-top: 2.8rem;
    padding-bottom: 5rem;
  }

  .terms-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 1.35rem;
    width: min(calc(100% - 3rem), 1180px);
  }

  .terms-toc {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid rgba(12, 74, 88, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(8, 26, 38, 0.08);
  }

  .terms-toc a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    color: #0b1320;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
  }

  .terms-toc a:hover {
    background: rgba(31, 188, 174, 0.12);
    color: #0d8d83;
  }

  .terms-content {
    gap: 1.1rem;
  }

  .terms-card {
    padding: 1.75rem 1.9rem;
    border-radius: 24px;
  }

  .terms-list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.2rem;
  }
}
