:root{
  --terms-bg: var(--bg2);
  --terms-panel: #ffffff;
  --terms-line: rgba(15, 23, 42, 0.10);
  --terms-ink: #0f172a;
  --terms-muted: #516074;
  --terms-soft: #eef4fb;
}

.termsPage{
  color: var(--terms-ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

.termsShell{
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.termsHero{
  padding: 52px 0 22px;
}

.termsHero__inner{
  padding: 0 0 18px;
}

.termsHero__copy{
  max-width: 880px;
}

.termsHero__eyebrow{
  margin: 0 0 14px;
  color: #4c617c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.termsHero h1{
  margin: 0;
  color: var(--terms-ink);
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.termsHero__lead{
  max-width: 780px;
  margin: 20px 0 0;
  color: #243448;
  font-size: 1.08rem;
  line-height: 1.75;
  font-weight: 600;
}

.termsHero__meta{
  margin-top: 22px;
  display: grid;
  gap: 10px;
  max-width: 780px;
  padding: 18px 20px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.06);
  color: var(--terms-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.termsHero__summary{
  margin-top: 16px;
  max-width: 780px;
}

.termsContent{
  padding: 8px 0 64px;
}

.termsLayout{
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.termsToc{
  position: sticky;
  top: 96px;
}

.termsToc__card{
  padding: 22px 20px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.termsToc__eyebrow{
  margin: 0 0 12px;
  color: #4c617c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.termsToc nav{
  display: grid;
  gap: 2px;
}

.termsToc a{
  padding: 10px 12px;
  border-radius: 12px;
  color: #233246;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.termsToc a:hover{
  background: rgba(109, 40, 255, 0.06);
  text-decoration: none;
}

.termsToc a:focus-visible,
.termsSection a:focus-visible{
  outline: 3px solid rgba(109, 40, 255, 0.20);
  outline-offset: 2px;
}

.termsArticle{
  display: grid;
  gap: 22px;
}

.termsSection{
  scroll-margin-top: 112px;
  padding: 28px 30px 30px;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
}

.termsSection__header{
  margin-bottom: 18px;
}

.termsSection__kicker{
  margin: 0 0 8px;
  color: #4c617c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.termsSection h2{
  margin: 0;
  color: var(--terms-ink);
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.termsSection p,
.termsSection li{
  color: #304154;
  font-size: 0.98rem;
  line-height: 1.78;
}

.termsSection p{
  margin: 0 0 14px;
}

.termsSection ul{
  margin: 0 0 14px;
  padding-left: 20px;
}

.termsSection a{
  color: #5b21b6;
}

.termsSummary{
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--terms-soft);
  color: #193049;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 700;
}

.termsContactCard{
  padding: 18px 18px 6px;
  border-radius: 20px;
  background: transparent;
  border: 0;
}

.termsContactCard a{
  color: #5b21b6;
  font-weight: 700;
}

@media (max-width: 980px){
  .termsLayout{
    grid-template-columns: 1fr;
  }

  .termsToc{
    position: static;
  }

  .termsToc nav{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 760px){
  .termsShell{
    width: min(100% - 24px, 1220px);
  }

  .termsHero{
    padding-top: 34px;
  }

  .termsSection{
    padding: 22px 18px 22px;
    border-radius: 22px;
  }

  .termsHero__meta,
  .termsSummary,
  .termsContactCard,
  .termsToc__card{
    border-radius: 18px;
  }

  .termsToc nav{
    grid-template-columns: 1fr;
  }
}
