/* ========================================
   Terms & Conditions Page Styles
   Bold Creative Design — Trigo Digital
   ======================================== */

/* Hero */
.terms-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.terms-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin: 16px 0 12px;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.terms-hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.terms-date {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  margin-top: 12px !important;
}

/* Layout */
.terms-content-section {
  padding: var(--section-padding) 0;
  background: var(--bg-dark);
}

.terms-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sidebar TOC */
.terms-toc {
  position: sticky;
  top: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
}

.terms-toc h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal-primary);
  margin-bottom: 20px;
}

.terms-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}

.terms-toc ol li {
  counter-increment: toc;
  margin-bottom: 4px;
}

.terms-toc ol li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.terms-toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-primary);
  flex-shrink: 0;
  opacity: 0.7;
}

.terms-toc ol li a:hover {
  background: rgba(78, 205, 196, 0.08);
  color: var(--teal-primary);
}

/* Main Content */
.terms-body {
  max-width: 760px;
}

.terms-intro {
  background: rgba(78, 205, 196, 0.06);
  border: 1px solid rgba(78, 205, 196, 0.15);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.terms-intro p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 12px;
}

.terms-intro p:last-child {
  margin-bottom: 0;
}

.terms-intro a {
  color: var(--teal-primary);
  text-decoration: none;
}

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

/* Sections */
.terms-section {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}

.terms-section h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terms-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-teal);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.terms-section p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 16px;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}

.terms-section ul li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.98rem;
}

.terms-section ul li:last-child {
  border-bottom: none;
}

.terms-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal-primary);
  font-weight: 700;
}

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

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

/* Contact block */
.terms-contact-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 20px;
}

.terms-contact-block p {
  margin-bottom: 6px !important;
  font-size: 0.95rem !important;
}

.terms-contact-block p:last-child {
  margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .terms-layout {
    grid-template-columns: 220px 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 120px 0 60px;
  }

  .terms-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .terms-toc {
    position: static;
    order: -1;
  }

  .terms-section h2 {
    font-size: 1.35rem;
  }

  .terms-num {
    width: 36px;
    height: 36px;
    font-size: 0.78rem;
  }
}
