/* ===== TERMS HERO ===== */
.terms-hero {
  padding: 120px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terms-hero .container { position: relative; z-index: 1; }
.terms-hero .badge { margin-bottom: 18px; }
.terms-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.terms-hero-sub {
  color: #64748b;
  font-size: 1rem;
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.65;
}
.terms-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #475569;
}

/* ===== LAYOUT ===== */
.terms-main { padding: 56px 0 80px; }
.terms-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* ===== SIDEBAR TOC ===== */
.terms-toc {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 84px;
}
.toc-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px;
}
.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #475569;
  margin-bottom: 14px;
}
.terms-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.terms-toc nav a {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 7px;
  transition: all 0.18s;
  line-height: 1.4;
}
.terms-toc nav a:hover {
  color: #a78bfa;
  background: rgba(124,58,237,0.08);
}

/* ===== BODY ===== */
.terms-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Intro notice */
.terms-notice {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 0.9rem;
  color: #c4b5fd;
  line-height: 1.7;
  margin-bottom: 40px;
}
.terms-notice strong { color: #a78bfa; }

/* Sections */
.terms-section {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  scroll-margin-top: 90px;
}
.terms-section:last-child { border-bottom: none; }

.terms-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.terms-section p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.75;
  margin-bottom: 12px;
}
.terms-section p:last-child { margin-bottom: 0; }
.terms-section strong { color: #e2e8f0; }

.terms-section ul {
  list-style: none;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terms-section ul li {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.terms-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: #7c3aed;
  border-radius: 50%;
}

/* Callouts */
.terms-callout {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  border-left: 3px solid #ef4444;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 0.875rem;
  color: #fca5a5;
  line-height: 1.65;
  margin-top: 14px;
}
.terms-callout-neutral {
  background: rgba(99,102,241,0.07);
  border-color: rgba(99,102,241,0.2);
  border-left-color: #6366f1;
  color: #a5b4fc;
}
.terms-callout-accept {
  background: rgba(34,197,94,0.07);
  border-color: rgba(34,197,94,0.2);
  border-left-color: #22c55e;
  color: #86efac;
}

/* Contact card */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 16px;
}
.contact-icon { font-size: 1.5rem; }
.contact-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #64748b; margin-bottom: 4px; }
.contact-link { font-size: 0.9rem; color: #a78bfa; text-decoration: none; font-weight: 600; }
.contact-link:hover { text-decoration: underline; }

/* Accept actions */
.terms-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .terms-layout { flex-direction: column; }
  .terms-toc { width: 100%; position: static; }
  .toc-inner { display: none; }
}
@media (max-width: 600px) {
  .terms-actions { flex-direction: column; align-items: flex-start; }
}
