/* ==========================================================================
   SahaayaNet - Terms & Conditions Stylesheet (terms.css)
   Official Terms & Conditions portal for SahaayaNet applications & web suite.
   Provides glassmorphic legal cards, prohibited activity badges, governing law info,
   sticky Table of Contents filter chips, and legal hero stage.
   ========================================================================== */

:root {
  --terms-primary: #8B5CF6;
  --terms-blue: #2563EB;
  --terms-emerald: #10B981;
  --terms-amber: #F59E0B;
  --terms-red: #EF4444;
}

/* Breadcrumb Navigation */
.breadcrumb-terms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb-terms a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-terms a:hover {
  color: var(--primary);
}

.breadcrumb-separator-terms {
  color: var(--text-light);
  font-size: 0.75rem;
}

.breadcrumb-current-terms {
  color: #8B5CF6;
  font-weight: 700;
}

/* Terms Hero Visual Stage */
.terms-hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.terms-glow-backdrop {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(37, 99, 235, 0.18) 50%, transparent 70%);
  filter: blur(45px);
  animation: floatGlowTerms 7s ease-in-out infinite alternate;
}

@keyframes floatGlowTerms {
  0% { transform: scale(0.9) translateY(0); opacity: 0.7; }
  100% { transform: scale(1.1) translateY(-15px); opacity: 1; }
}

/* Central Document Card */
.terms-doc-card {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 5;
}

[data-theme="dark"] .terms-doc-card {
  background: rgba(17, 24, 39, 0.95);
}

.doc-icon-glow {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 8px 16px rgba(139, 92, 246, 0.3));
}

/* Floating Chips for Hero */
.floating-chip-terms {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  z-index: 10;
  animation: floatBounceTerms 4s ease-in-out infinite alternate;
}

.floating-chip-terms.tm-1 { top: 20px; left: -10px; animation-delay: 0s; }
.floating-chip-terms.tm-2 { top: 90px; right: -15px; animation-delay: 1s; }
.floating-chip-terms.tm-3 { bottom: 120px; left: -25px; animation-delay: 2s; }
.floating-chip-terms.tm-4 { bottom: 25px; right: -10px; animation-delay: 1.5s; }

@keyframes floatBounceTerms {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(1.5deg); }
}

/* Terms Glass Cards */
.terms-section-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.terms-section-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(139, 92, 246, 0.3);
}

.terms-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.terms-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.terms-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Prohibited Activities Cards Grid */
.prohibited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.prohibited-card {
  background: var(--bg-main);
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.prohibited-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-3px);
}

.prohibited-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* Table of Contents Sticky Bar */
.toc-sticky-bar-terms {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  margin-bottom: 2.5rem;
  scrollbar-width: thin;
}

.toc-chip-terms {
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition-fast);
}

.toc-chip-terms:hover, .toc-chip-terms.active {
  background: #8B5CF6;
  color: white;
  border-color: #8B5CF6;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .terms-hero-stage {
    height: 380px;
  }
  .floating-chip-terms {
    display: none;
  }
  .terms-section-card {
    padding: 1.5rem;
  }
}
