/* =========================================
   FAQ — desktop & mobile
========================================= */

body.page-faq .main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.faq-page {
  flex: 1 1 auto;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 560px;
}

.faq-header h2 {
  color: #00ffff;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.faq-header p {
  color: var(--muted-dark);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.faq-card {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.faq-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0, 255, 255, 0.08);
}

.faq-card h3 {
  color: #00ffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.faq-card p {
  color: var(--text-dark);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
  opacity: 0.9;
}

.faq-footer {
  margin-top: 32px;
  color: var(--muted-dark);
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 480px;
}

.faq-footer a {
  color: #00ffff;
  text-decoration: none;
  font-weight: 600;
}

.faq-footer a:hover {
  text-decoration: underline;
}

/* Light */
.light-theme .faq-page {
  background: transparent;
}

.light-theme .faq-header h2,
.light-theme .faq-card h3 {
  color: #2563eb;
}

.light-theme .faq-header p {
  color: var(--muted-light);
}

.light-theme .faq-card {
  background: var(--surface-light);
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.light-theme .faq-card p {
  color: var(--text-light);
}

.light-theme .faq-footer a {
  color: #2563eb;
}

/* Mobile */
@media (max-width: 991px) {
  body.page-faq .main-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .faq-page {
    padding: 12px 14px calc(var(--mobile-bottom-bar, 72px) + 16px);
    align-items: stretch;
  }

  .faq-header {
    margin-bottom: 20px;
  }

  .faq-header h2 {
    font-size: 1.35rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .faq-card {
    padding: 16px;
    border-radius: 14px;
  }

  .faq-card:hover {
    transform: none;
  }

  .faq-card:active {
    transform: scale(0.995);
    border-color: rgba(0, 255, 255, 0.35);
  }

  .faq-footer {
    margin-top: 20px;
    font-size: 0.85rem;
  }
}
