/* ===================================
   TERMS PAGE - HERO
   =================================== */

.terms-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
  padding: 5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 175, 154, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.terms-hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 175, 154, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.terms-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.terms-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.terms-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
}




/* ===================================
   TERMS PAGE - CONTENT
   =================================== */

.terms-content {
  padding: 5rem 2rem;
  background: var(--light-bg);
  position: relative;
}

.terms-content::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(61, 90, 88, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.terms-box {
  max-width: 1500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid rgba(61, 90, 88, 0.1);
  position: relative;
}

.terms-box h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 2rem;
  font-weight: 800;
}

.terms-box h3 {
  font-size: 1.5rem;
  color: var(--green);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.terms-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(30, 42, 42, 0.85);
  margin-bottom: 1.5rem;
}

.terms-box ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.terms-box ul li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(30, 42, 42, 0.85);
  margin-bottom: 0.75rem;
}

.terms-box strong {
  color: var(--navy);
  font-weight: 700;
}

.last-updated {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(30, 42, 42, 0.6);
  margin-top: 3rem;
  font-style: italic;
}



/* ===================================
   TERMS PAGE - NAVIGATION & TABS
   =================================== */

.terms-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

.terms-nav {
  position: sticky;
  top: 90px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 90, 88, 0.12);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.terms-nav h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.terms-nav p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: rgba(30, 42, 42, 0.75);
}

.terms-nav button,
.tab-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(61, 90, 88, 0.14);
  background: rgba(245,245,245,0.6);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
  color: var(--navy);
  transition: 0.25s ease;
  margin-bottom: 0.6rem;
}

.terms-nav button small,
.tab-btn small {
  display: block;
  font-weight: 600;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.terms-nav button:hover,
.tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 175, 154, 0.45);
}

.terms-nav button.active,
.tab-btn.active {
  background: linear-gradient(135deg, rgba(79, 175, 154, 0.22), rgba(61, 90, 88, 0.10));
  border-color: rgba(79, 175, 154, 0.70);
}

.terms-panels {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid rgba(61, 90, 88, 0.1);
}

.terms-panel {
  display: none;
}

.terms-panel.active {
  display: block;
}

.panel-intro {
  background: rgba(79, 175, 154, 0.10);
  border: 1px solid rgba(79, 175, 154, 0.25);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.5rem;
  color: rgba(30, 42, 42, 0.85);
}


/* ===================================
   TERMS PAGE - ANIMATIONS
   =================================== */

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}



/* ===================================
   TERMS PAGE - RESPONSIVE
   =================================== */

@media (max-width: 968px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }
  
  .terms-nav {
    position: relative;
    top: 0;
  }
  
  .terms-box {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 3rem 1.5rem 2rem;
  }

  .terms-content {
    padding: 2rem 1rem;
  }

  .terms-box {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .terms-panels {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  /* Remove infinite animations — performance */
  .terms-hero::before,
  .terms-hero::after {
    animation: none;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}