: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{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0 92px;
  background: #6d28d9;
  color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 78%);
}

.termsHero.sectionWrapper--hero{
  background: #6d28d9;
  overflow: hidden;
}

.termsHero .hero__bg{
  display: none;
}

.termsHero__inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, .82fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: center;
  padding: 0 0 18px;
}

.termsHero__copy{
  max-width: 600px;
}

.termsHero__eyebrow{
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.termsHero h1{
  margin: 0;
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(3rem, 4.6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.termsHero__lead{
  max-width: 540px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 600;
}

.termsHero__meta{
  margin-top: 28px;
  display: block;
  max-width: 540px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, .76);
  font-size: 0.9rem;
  line-height: 1.6;
}

.termsHero__meta span:nth-child(2){
  display: none;
}

.termsHero__summary{
  display: none;
}

.termsHero__visual{
  position: relative;
  min-height: 330px;
}

.termsVisual__block{
  position: absolute;
  border-radius: 0;
}

.termsVisual__block--violet{
  right: 0;
  bottom: 22px;
  width: 76%;
  height: 72%;
  background: #a855f7;
}

.termsVisual__block--plum{
  left: 0;
  bottom: 10px;
  width: 48%;
  height: 68%;
  background: #4c1d95;
}

.termsVisual__frame{
  position: absolute;
  top: 0;
  right: 0;
  width: min(780px, 125%);
  min-height: 350px;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.termsVisual__frame img{
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
}

.termsContent{
  padding: 8px 0 64px;
  background: #ffffff;
}

.termsContent.sectionWrapper{
  background: #ffffff;
}

.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: #f1f3f6;
  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: #ffffff;
  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){
  .termsHero{
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 88%);
  }

  .termsHero__inner{
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .termsHero__copy{
    max-width: 720px;
  }

  .termsHero h1{
    max-width: 11ch;
  }

  .termsHero__visual{
    width: 100%;
    max-width: 620px;
    min-height: 300px;
  }

  .termsVisual__frame{
    right: 0;
    width: 100%;
  }

  .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: 46px 0 76px;
  }

  .termsHero__inner{
    gap: 34px;
  }

  .termsHero__eyebrow{
    margin-bottom: 22px;
  }

  .termsHero h1{
    max-width: 9ch;
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .termsHero__lead{
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .termsHero__visual{
    min-height: 240px;
  }

  .termsVisual__block--violet{
    width: 82%;
    height: 70%;
  }

  .termsVisual__block--plum{
    width: 56%;
  }

  .termsVisual__frame{
    min-height: 210px;
  }

  .termsVisual__frame img{
    height: 210px;
  }

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

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

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