@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.terms-page{
  --tc-blue:#0868f8;
  --tc-ink:#0b1557;
  --tc-muted:#364878;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  color:var(--tc-ink);
  background:#fff;
  overflow:hidden;
}
.terms-page *{box-sizing:border-box}

/* ============================================================
   HERO
   ============================================================ */
.terms-hero{
  background:linear-gradient(105deg,#f5f9ff 0%,#eaf4ff 52%,#d5e9ff 100%);
  min-height:192px;
}
.terms-hero-inner{
  max-width:1400px;margin:auto;min-height:192px;
  padding:0 32px;position:relative;isolation:isolate;
}
.terms-hero-inner:after{
  content:"";position:absolute;z-index:-1;
  inset:0 0 0 39%;
  background:linear-gradient(90deg,#eaf4ff 0%,transparent 32%);
}

.terms-breadcrumb{
  display:flex;gap:8px;align-items:center;
  padding-top:13px;font-size:10px;
}
.terms-breadcrumb a{
  color:inherit;text-decoration:none;
  transition:color .2s ease;
}
.terms-breadcrumb a:hover{color:var(--tc-blue)}
.terms-breadcrumb span:nth-child(2){font-size:18px;color:#4a68a3}

.terms-hero-copy{width:47%;position:relative;z-index:2;padding-top:12px}
.terms-hero-copy h1{
  font-size:clamp(30px,3.4vw,40px);
  line-height:.92;letter-spacing:-1.5px;
  font-weight:800;margin:0 0 7px;
}
.terms-hero-copy h1 span{color:var(--tc-blue)}
.terms-hero-copy h2{
  font-size:13px;line-height:1.35;
  margin:0 0 5px;font-weight:600;
}
.terms-hero-copy p{
  font-size:10.5px;line-height:1.5;
  max-width:390px;margin:0;color:#1b2b62;
}

.terms-hero-art{
  position:absolute;z-index:-1;right:12px;top:24px;bottom:0;
  width:53%;
  background-position:center;
  background-size:contain;
  background-repeat:no-repeat;
  mix-blend-mode:multiply;
}

/* ============================================================
   CONTENT
   ============================================================ */
.terms-content-wrap{
  max-width:1400px;margin:0 auto;
  padding:6px 32px 12px;
}

/* ============================================================
   INTRO
   ============================================================ */
.terms-intro{
  display:flex;align-items:center;gap:14px;
  padding:10px 15px;margin:0 0 9px;
  border:1px solid #dfebff;border-radius:9px;
  background:linear-gradient(100deg,#f7fbff,#f0f7ff);
  min-height:80px;
  transition:transform .3s cubic-bezier(.22,1,.36,1),
             box-shadow .3s ease,
             border-color .3s ease;
}
.terms-intro:hover{
  transform:translateY(-3px);
  border-color:#a9cbff;
  box-shadow:0 14px 28px rgba(23,61,118,.1);
}

.terms-intro-icon{
  width:55px;height:55px;flex:0 0 55px;
  display:grid;place-items:center;
  border-radius:9px;background:#fff;
  box-shadow:0 2px 12px #1a5fb51b;
  color:#0873ff;
  transition:transform .4s cubic-bezier(.34,1.56,.64,1);
}
.terms-intro:hover .terms-intro-icon{
  transform:scale(1.1) rotate(-6deg);
}
.terms-intro-icon svg{
  width:31px;height:31px;stroke-width:2.6;
  fill:#0873ff;color:#0873ff;
}
.terms-intro h2{
  font-size:13px;line-height:1.25;
  margin:0 0 3px;font-weight:800;
}
.terms-intro p{
  font-size:10.5px;line-height:1.45;
  color:#334675;margin:0;
}

/* ============================================================
   ACCORDION LIST
   ============================================================ */
.terms-list{display:flex;flex-direction:column;gap:4px}
.terms-list > .terms-reveal{display:block}

.terms-item{
  border:1px solid #dfebff;border-radius:9px;
  background:linear-gradient(100deg,#f7fbff,#f0f7ff);
  overflow:hidden;
  transition:transform .25s cubic-bezier(.22,1,.36,1),
             box-shadow .25s ease,
             border-color .25s ease;
}
.terms-item:hover{
  border-color:#a9cbff;
  box-shadow:0 10px 22px rgba(23,61,118,.08);
}
.terms-item.is-expanded{
  border-color:#a9cbff;
  box-shadow:0 14px 28px rgba(23,61,118,.1);
}

.terms-item-trigger{
  width:100%;display:flex;align-items:center;gap:12px;
  text-align:left;padding:8px 12px;border:0;
  background:transparent;color:inherit;
  cursor:pointer;min-height:58px;font:inherit;
  transition:background .2s ease;
}
.terms-item-trigger:hover{
  background:rgba(8,115,255,.04);
}

.terms-number{
  display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;flex:0 0 30px;
  border-radius:50%;font-size:15px;font-weight:800;
  color:white;box-shadow:0 2px 5px #123c8118;
  transition:transform .4s cubic-bezier(.34,1.56,.64,1);
}
.terms-item:hover .terms-number{
  transform:scale(1.12);
}
.terms-item.is-expanded .terms-number{
  transform:scale(1.08) rotate(-6deg);
}

.terms-color-blue{background:linear-gradient(135deg,#4ca0ff,#0872f9)}
.terms-color-pink{background:linear-gradient(135deg,#ff5cb0,#ed1682)}
.terms-color-green{background:linear-gradient(135deg,#25d79c,#00b978)}
.terms-color-orange{background:linear-gradient(135deg,#ffb33c,#ff8700)}
.terms-color-purple{background:linear-gradient(135deg,#a04bff,#741bfa)}
.terms-color-sky{background:linear-gradient(135deg,#69b9ff,#2787f7)}

.terms-item-copy{
  display:flex;flex-direction:column;gap:2px;
  flex:1;min-width:0;
}
.terms-item-copy strong{
  font-size:11.5px;line-height:1.3;
  font-weight:800;
  transition:color .25s ease;
}
.terms-item:hover .terms-item-copy strong{color:var(--tc-blue)}
.terms-item-copy>span{
  font-size:10px;line-height:1.4;color:#354675;
}

.terms-chevron{
  flex:0 0 auto;color:#0b1557;
  transition:transform .25s ease, color .25s ease;
}
.terms-item:hover .terms-chevron{color:var(--tc-blue)}
.terms-item.is-expanded .terms-chevron{transform:rotate(180deg)}

.terms-item-more{
  display:flex;gap:9px;align-items:flex-start;
  padding:0 18px 12px 54px;color:#31518c;
  animation:termsAnswerIn .28s cubic-bezier(.22,1,.36,1);
}
@keyframes termsAnswerIn{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}
.terms-item-more svg{
  flex:0 0 auto;margin-top:1px;color:var(--tc-blue);
}
.terms-item-more p{
  font-size:10px;line-height:1.5;margin:0;
}

/* ============================================================
   LAST UPDATED
   ============================================================ */
.terms-last-updated{
  display:flex;justify-content:space-between;gap:14px;
  align-items:center;
  margin-top:10px;padding:9px 12px;
  border:1px solid #dfebff;border-radius:7px;
  background:#f4f8ff;
  font-size:8.5px;line-height:1.45;color:#334675;
}
.terms-last-updated span:last-child{text-align:right}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.terms-reveal{
  opacity:0;transform:translateY(22px);
  transition:
    opacity .65s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1);
  will-change:opacity,transform;
}
.terms-reveal.is-visible{opacity:1;transform:translateY(0)}

/* Hero entrance */
.terms-hero-copy h1,
.terms-hero-copy h2,
.terms-hero-copy p{
  opacity:0;transform:translateY(16px);
  animation:termsHeroFadeUp .9s cubic-bezier(.22,1,.36,1) forwards;
}
.terms-hero-copy h1{animation-delay:.05s}
.terms-hero-copy h2{animation-delay:.18s}
.terms-hero-copy p{animation-delay:.32s}
@keyframes termsHeroFadeUp{to{opacity:1;transform:translateY(0)}}

.terms-hero-art{
  opacity:0;
  animation:termsHeroArtIn 1s cubic-bezier(.22,1,.36,1) .2s forwards;
}
@keyframes termsHeroArtIn{
  from{opacity:0;transform:translateX(24px)}
  to{opacity:1;transform:translateX(0)}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(min-width:1200px){
  .terms-hero,
  .terms-hero-inner{min-height:205px}
  .terms-content-wrap{padding-top:7px}
  .terms-intro{min-height:82px}
  .terms-item-trigger{min-height:59px}
}

@media(max-width:760px){
  .terms-hero{min-height:unset}
  .terms-hero-inner{padding:0 18px 16px;min-height:unset}
  .terms-hero-art{
    position:relative;right:auto;top:auto;bottom:auto;z-index:0;
    width:100%;height:150px;margin:9px auto 0;
    background-size:contain;background-position:center;
  }
  .terms-hero-inner:after{display:none}
  .terms-hero-copy{width:100%;padding-top:12px}
  .terms-hero-copy h1{font-size:35px;line-height:.98}
  .terms-hero-copy h2{font-size:13px}
  .terms-hero-copy p{font-size:11px;max-width:100%}

  .terms-content-wrap{padding:8px 13px 15px}

  .terms-intro{align-items:flex-start;padding:10px;gap:10px}
  .terms-intro-icon{width:45px;height:45px;flex-basis:45px}
  .terms-intro-icon svg{width:26px;height:26px}
  .terms-intro h2{font-size:12px}
  .terms-intro p{font-size:10px}

  .terms-item-trigger{gap:9px;padding:9px;min-height:unset}
  .terms-number{width:29px;height:29px;flex-basis:29px;font-size:14px}
  .terms-item-copy strong{font-size:11px}
  .terms-item-copy>span{font-size:9.5px}
  .terms-chevron{width:15px}
  .terms-item-more{padding:0 12px 12px 47px}
  .terms-item-more p{font-size:9.5px}

  .terms-last-updated{
    align-items:flex-start;flex-direction:column;
    gap:6px;font-size:9px;
  }
  .terms-last-updated span:last-child{text-align:left}
  .terms-desktop-break{display:none}
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
  .terms-reveal{opacity:1;transform:none}
  .terms-intro:hover,
  .terms-item:hover,
  .terms-item:hover .terms-number,
  .terms-intro:hover .terms-intro-icon{transform:none}
}