/* ===== Section 1: Hero with Image (No Border) ===== */
.terms-hero-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.terms-page-title {
  font-weight: 800;
  font-size: 3rem;
  color: var(--text-white);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.terms-page-title .highlight {
  color: var(--accent-blue);
}

.terms-page-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.7;
}

.terms-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  padding: 0.3rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}

.terms-last-updated i {
  color: var(--accent-blue);
}

/* ===== Sidebar with Icons ===== */
.terms-sidebar {
  position: sticky;
  top: 100px;
}

.terms-sidebar-title {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-sidebar-nav li {
  margin-bottom: 0.2rem;
}

.terms-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.terms-sidebar-nav a i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
  flex-shrink: 0;
}

.terms-sidebar-nav a:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.terms-sidebar-nav a:hover i {
  color: var(--accent-blue);
}

.terms-sidebar-nav a.active {
  color: var(--accent-blue);
  background: rgba(138, 180, 248, 0.08);
  border-left: 2px solid var(--accent-blue);
}

.terms-sidebar-nav a.active i {
  color: var(--accent-blue);
}

/* ===== Main Content ===== */
.terms-content {
  border: 1px solid var(--border-light);
}

.terms-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 80px;
}

.terms-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-section-title {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.terms-section-title i {
  font-size: 1.1rem;
}

.terms-section-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  padding-left: 2rem;
}

.terms-section-text a {
  color: var(--accent-blue);
  text-decoration: none;
}

.terms-section-text a:hover {
  text-decoration: underline;
}

/* ===== Questions Section - Left Icon ===== */
.terms-questions {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.terms-questions-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(138, 180, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* ===== Trust Commitment - Full Width ===== */
.terms-trust {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: rgba(10, 17, 49, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.terms-trust-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.trust-btn {
  background: linear-gradient(135deg, #5364f7, #8ab4f8);
  border: none;
  border-radius: 60px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(83, 100, 247, 0.4);
  color: #ffffff;
}

.trust-btn i {
  transition: transform 0.3s;
}

.trust-btn:hover i {
  transform: translateX(4px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991.98px) {
  .terms-page-title {
    font-size: 2.2rem;
  }
  
  .terms-page-subtitle {
    max-width: 100%;
  }
  
  .terms-hero-image {
    height: 280px;
  }
  
  .terms-sidebar {
    position: static;
  }
  
  .terms-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  
  .terms-sidebar-nav li {
    margin-bottom: 0;
  }
  
  .terms-sidebar-nav a {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
  }
  
  .terms-sidebar-nav a.active {
    border-left: none;
    background: rgba(138, 180, 248, 0.12);
  }
  
  .terms-trust-image {
    height: 180px;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
  
  .trust-btn {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .terms-page-title {
    font-size: 1.8rem;
  }
  
  .terms-page-subtitle {
    font-size: 0.95rem;
  }
  
  .terms-hero-image {
    height: 220px;
  }
  
  .terms-section-title {
    font-size: 1rem;
  }
  
  .terms-section-text {
    font-size: 0.9rem;
    padding-left: 1.5rem;
  }
  
  .terms-questions {
    padding: 1rem !important;
  }
  
  .terms-questions-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  
  .terms-trust {
    padding: 1.5rem !important;
  }
  
  .terms-trust-image {
    height: 150px;
    max-width: 200px;
  }
}

@media (max-width: 576px) {
  .terms-page-title {
    font-size: 1.5rem;
  }
  
  .terms-page-subtitle {
    font-size: 0.9rem;
  }
  
  .terms-last-updated {
    font-size: 0.7rem;
    padding: 0.2rem 1rem;
  }
  
  .terms-hero-image {
    height: 180px;
  }
  
  .terms-section-title {
    font-size: 0.95rem;
  }
  
  .terms-section-text {
    font-size: 0.85rem;
    padding-left: 1rem;
  }
  
  .terms-sidebar-nav a {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .terms-content {
    padding: 1rem !important;
  }
  
  .terms-questions-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  
  .terms-trust-image {
    height: 120px;
    max-width: 150px;
  }
  
  .trust-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
  }
}