*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:#f8fbff;
  color:#0f172a;
}

.terms-hero{
  position:relative;
  overflow:hidden;
  min-height:72vh;
  display:flex;
  align-items:center;
  background:
    radial-gradient(circle at 10% 15%,rgba(20,184,166,.22),transparent 30%),
    radial-gradient(circle at 90% 20%,rgba(37,99,235,.18),transparent 32%),
    radial-gradient(circle at 50% 100%,rgba(124,58,237,.12),transparent 30%),
    linear-gradient(135deg,#ffffff,#f8fbff,#eef6ff);
}

.terms-grid{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(37,99,235,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(20,184,166,.07) 1px,transparent 1px);
  background-size:46px 46px;
  animation:termsGridMove 18s linear infinite;
}

.terms-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(78px);
  opacity:.72;
  animation:termsFloat 8s ease-in-out infinite;
}

.orb-one{
  width:310px;
  height:310px;
  background:rgba(20,184,166,.28);
  left:-100px;
  top:80px;
}

.orb-two{
  width:350px;
  height:350px;
  background:rgba(124,58,237,.18);
  right:-120px;
  bottom:60px;
  animation-delay:1.5s;
}

.terms-container{
  width:min(1180px,92%);
  margin:auto;
  position:relative;
  z-index:2;
}

.terms-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid #dbeafe;
  color:#0f766e;
  font-weight:900;
  box-shadow:0 14px 35px rgba(15,23,42,.08);
  animation:badgePulse 2.4s ease-in-out infinite;
}

.terms-hero h1{
  font-size:clamp(3rem,8vw,7rem);
  line-height:.95;
  letter-spacing:-.08em;
  margin:24px 0;
}

.terms-hero p{
  max-width:820px;
  color:#64748b;
  font-size:1.15rem;
  line-height:1.85;
  font-weight:650;
}

.terms-hero small{
  display:inline-block;
  margin-top:18px;
  color:#2563eb;
  font-weight:900;
}

.terms-main{
  padding:90px 0;
}

.terms-layout{
  display:grid;
  grid-template-columns:290px 1fr;
  gap:34px;
  align-items:start;
}

.terms-sidebar{
  position:sticky;
  top:100px;
  padding:18px;
  border-radius:28px;
  background:#ffffff;
  border:1px solid #e2e8f0;
  box-shadow:0 20px 60px rgba(15,23,42,.08);
}

.terms-sidebar a{
  display:block;
  padding:14px 16px;
  margin-bottom:8px;
  border-radius:16px;
  color:#334155;
  font-weight:850;
  text-decoration:none;
  transition:.35s ease;
}

.terms-sidebar a:hover{
  background:linear-gradient(135deg,#eef6ff,#ecfdf5);
  color:#2563eb;
  transform:translateX(8px);
}

.terms-content{
  display:grid;
  gap:24px;
}

.terms-card{
  position:relative;
  overflow:hidden;
  padding:34px;
  border-radius:32px;
  background:#ffffff;
  border:1px solid #e2e8f0;
  box-shadow:0 20px 70px rgba(15,23,42,.08);
  transition:.45s ease;
}

.terms-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at var(--x,20%) var(--y,20%),rgba(20,184,166,.14),transparent 30%),
    linear-gradient(135deg,rgba(20,184,166,.08),rgba(37,99,235,.07),rgba(124,58,237,.06));
  opacity:0;
  transition:.45s ease;
}

.terms-card::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:5px;
  height:100%;
  background:linear-gradient(180deg,#0f766e,#2563eb,#7c3aed);
  opacity:.85;
}

.terms-card:hover{
  transform:translateY(-10px);
  box-shadow:0 34px 95px rgba(37,99,235,.14);
}

.terms-card:hover::before{
  opacity:1;
}

.terms-card > *{
  position:relative;
  z-index:1;
}

.terms-card > i{
  width:66px;
  height:66px;
  display:grid;
  place-items:center;
  border-radius:24px;
  color:#0f766e;
  background:linear-gradient(135deg,#e0f7f5,#eef2ff);
  font-size:1.55rem;
  margin-bottom:22px;
  transition:.4s ease;
}

.terms-card:hover > i{
  transform:rotate(-6deg) scale(1.06);
  color:#2563eb;
}

.terms-card h2{
  margin:0 0 14px;
  font-size:1.55rem;
  letter-spacing:-.04em;
}

.terms-card p{
  color:#64748b;
  font-size:1rem;
  line-height:1.85;
  font-weight:650;
}

.contact-lines{
  display:grid;
  gap:12px;
  margin-top:18px;
}

.contact-lines span{
  display:flex;
  align-items:center;
  gap:10px;
  color:#334155;
  font-weight:850;
}

.contact-lines i{
  color:#2563eb;
}

.reveal{
  opacity:0;
  transform:translateY(30px);
  transition:.85s ease;
}

.reveal.show{
  opacity:1;
  transform:translateY(0);
}

@keyframes termsGridMove{
  to{
    background-position:46px 46px;
  }
}

@keyframes termsFloat{
  50%{
    transform:translateY(-30px) scale(1.06);
  }
}

@keyframes badgePulse{
  50%{
    box-shadow:0 18px 45px rgba(37,99,235,.16);
    transform:translateY(-2px);
  }
}

@media(max-width:900px){
  .terms-layout{
    grid-template-columns:1fr;
  }

  .terms-sidebar{
    position:relative;
    top:auto;
  }

  .terms-hero{
    min-height:60vh;
    padding:80px 0;
  }
}

@media(max-width:600px){
  .terms-main{
    padding:60px 0;
  }

  .terms-card{
    padding:24px;
    border-radius:24px;
  }

  .terms-sidebar{
    padding:12px;
  }

  .terms-sidebar a{
    padding:12px 14px;
  }
}