/* ============================================================
   PlayerSDK — Legal, Policy & Informational Pages Styling
   ============================================================ */

.legal-hero {
  position: relative;
  padding: 150px 0 60px;
  background: var(--bg-primary);
  overflow: hidden;
  text-align: center;
}

.legal-hero__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 255, 107, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .legal-hero__glow {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 255, 107, 0.08);
  border: 1px solid rgba(124, 255, 107, 0.25);
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

[data-theme="light"] .legal-hero__badge {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.legal-hero__title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.legal-hero__meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* Layout */
.legal-content-wrap {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.legal-card {
  background: var(--bg-card, rgba(255,255,255,0.02));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

[data-theme="light"] .legal-card {
  background: #ffffff;
  border-color: rgba(15,23,42,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.legal-section {
  margin-bottom: 40px;
}

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

.legal-section h2 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2 i {
  color: var(--accent);
  font-size: 1.25rem;
}

.legal-section p, .legal-section li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-section ul, .legal-section ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-callout {
  background: rgba(124, 255, 107, 0.05);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

[data-theme="light"] .legal-callout {
  background: #eff6ff;
  border-left-color: #2563eb;
}

.legal-callout p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-question i {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 26px 24px;
}


/* About Grid & Counters — Minimal Strip Style */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 36px 0;
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card, rgba(255,255,255,0.02));
}

[data-theme="light"] .about-stats-grid {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.about-stat-card {
  padding: 36px 28px;
  text-align: left;
  border-right: 1px solid var(--border-color, rgba(255,255,255,0.08));
  transition: background 0.2s ease;
}

[data-theme="light"] .about-stat-card {
  border-right-color: #e2e8f0;
}

.about-stat-card:last-child {
  border-right: none;
}

.about-stat-card:hover {
  background: var(--comp-surface-hover, rgba(255,255,255,0.04));
}

[data-theme="light"] .about-stat-card:hover {
  background: #ffffff;
}

.about-stat-num {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent, #00d289);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

[data-theme="light"] .about-stat-num {
  color: #2563eb;
}

.about-stat-label {
  font-family: var(--font-body, sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  letter-spacing: 0;
  text-transform: none;
}

[data-theme="light"] .about-stat-label {
  color: #64748b;
}

@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-stat-card:nth-child(2) {
    border-right: none;
  }
  .about-stat-card:nth-child(3),
  .about-stat-card:nth-child(4) {
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
  }
  [data-theme="light"] .about-stat-card:nth-child(3),
  [data-theme="light"] .about-stat-card:nth-child(4) {
    border-top-color: #e2e8f0;
  }
  .about-stat-card {
    padding: 28px 20px;
  }
  .about-stat-num {
    font-size: 2rem;
  }
}
@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
  .about-stat-card:nth-child(2) {
    border-right: none;
  }
  .about-stat-card:nth-child(n+2) {
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
  }
  [data-theme="light"] .about-stat-card:nth-child(n+2) {
    border-top-color: #e2e8f0;
  }
}

@media (max-width: 768px) {
  .legal-card {
    padding: 28px 20px;
  }
  .legal-hero__title {
    font-size: 2rem;
  }
}

/* Styled + suffix on stat counters */
.stat-plus {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent, #00d289);
  margin-left: 2px;
  vertical-align: middle;
  display: inline-block;
}

[data-theme="light"] .stat-plus {
  color: #0284c7;
}
