.terms-page main {
  background: #0d0f12;
}

.terms-hero {
  position: relative;
  display: flex;
  min-height: 440px;
  overflow: hidden;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(7, 8, 11, 0.99) 0%,
      rgba(7, 8, 11, 0.95) 35%,
      rgba(7, 8, 11, 0.7) 58%,
      rgba(7, 8, 11, 0.35) 82%,
      rgba(7, 8, 11, 0.55) 100%
    ),
    url("../img/studio-workspace.webp") 74% 42% / cover no-repeat;
}

.terms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      #0d0f12 0%,
      rgba(13, 15, 18, 0.9) 6%,
      rgba(13, 15, 18, 0.16) 24%,
      transparent 39%,
      transparent 60%,
      rgba(13, 15, 18, 0.34) 77%,
      rgba(13, 15, 18, 0.92) 94%,
      #0d0f12 100%
    ),
    radial-gradient(
      circle at 79% 32%,
      rgba(140, 82, 255, 0.14),
      transparent 28%
    );
  pointer-events: none;
}

.terms-hero::after {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -390px;
  width: 570px;
  height: 570px;
  border: 1px solid rgba(199, 168, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.terms-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(70px, 10vw, 160px);
  align-items: center;
}

.terms-hero-copy {
  max-width: 720px;
}
.terms-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3.35rem, 4.5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.terms-hero h1 span {
  display: block;
  color: var(--violet);
}
.terms-hero-copy > p:last-child {
  max-width: 610px;
  margin: 0;
  color: #d1cec9;
  font-size: 1.05rem;
}

.terms-hero-summary {
  padding: 24px 26px;
  border-left: 2px solid var(--purple);
  background: linear-gradient(
    90deg,
    rgba(10, 11, 15, 0.94),
    rgba(10, 11, 15, 0.72)
  );
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.terms-hero-summary > span {
  display: block;
  margin-bottom: 16px;
  color: #c8c4d3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terms-hero-summary ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.terms-hero-summary li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 11px;
  align-items: start;
  color: #e5e2dc;
  font-size: 0.82rem;
}
.terms-hero-summary li i {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 173, 69, 0.1);
}

.terms-content-section {
  padding-top: 76px;
  border-top: 0;
  background:
    radial-gradient(
      circle at 16% 0%,
      rgba(140, 82, 255, 0.055),
      transparent 22%
    ),
    #0d0f12;
}

.terms-content-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(50px, 7vw, 105px);
  align-items: start;
}

.terms-index {
  position: sticky;
  top: 28px;
  padding: 28px;
  border: 1px solid #343944;
  border-top: 2px solid var(--purple);
  background: linear-gradient(145deg, #171a20, #111419);
}
.terms-index h2 {
  margin-bottom: 28px;
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
}
.terms-index nav {
  display: grid;
}
.terms-index nav a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d6d3cd;
  font-size: 0.78rem;
  text-decoration: none;
  transition:
    color 0.18s ease,
    padding-left 0.18s ease;
}
.terms-index nav a:hover {
  padding-left: 4px;
  color: var(--violet);
}
.terms-index nav span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
}

.terms-article {
  max-width: none;
}
.terms-article .notice {
  margin: 0 0 30px;
  padding: 22px 24px;
  border: 1px solid rgba(199, 168, 255, 0.18);
  border-left: 2px solid var(--purple);
  background: rgba(140, 82, 255, 0.045);
  color: #c8c5bf;
}

.terms-block {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 30px;
}
.terms-number {
  padding-top: 5px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.terms-block h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}
.terms-block p {
  max-width: 790px;
  margin: 0;
  line-height: 1.78;
}

.terms-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 28px 30px;
  border: 1px solid rgba(199, 168, 255, 0.2);
  border-left: 2px solid var(--purple);
  background: linear-gradient(
    100deg,
    rgba(140, 82, 255, 0.09),
    rgba(17, 20, 25, 0.72)
  );
}
.terms-contact strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.2rem;
}
.terms-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.terms-contact .button {
  flex: 0 0 auto;
}

@media (min-width: 901px) {
  .terms-page main .container {
    width: min(calc(100% - 60px), 1340px);
  }
}

@media (max-width: 900px) {
  .terms-hero {
    min-height: 550px;
    background-position: 66% center;
  }
  .terms-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 62px 0 72px;
  }
  .terms-hero-copy {
    max-width: 680px;
  }
  .terms-hero-summary {
    width: min(440px, 100%);
  }
  .terms-content-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .terms-index {
    position: static;
  }
  .terms-index nav {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

@media (max-width: 580px) {
  .terms-hero {
    min-height: 610px;
    background-position: 62% center;
  }
  .terms-hero::before {
    background: linear-gradient(
      180deg,
      #0d0f12 0%,
      rgba(13, 15, 18, 0.84) 18%,
      rgba(13, 15, 18, 0.7) 58%,
      #0d0f12 100%
    );
  }
  .terms-hero-grid {
    gap: 32px;
    padding: 50px 0 64px;
  }
  .terms-hero h1 {
    font-size: clamp(2.75rem, 13vw, 3.75rem);
  }
  .terms-hero-summary {
    padding: 20px;
  }
  .terms-content-section {
    padding-top: 54px;
  }
  .terms-index nav {
    grid-template-columns: 1fr;
  }
  .terms-article .notice {
    padding: 18px;
  }
  .terms-block {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }
  .terms-contact {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }
  .terms-contact .button {
    width: 100%;
  }
}
