/* Svenn FAQ Page */

/* ── Poppins Font ── */

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --border: #e0e0e8;
  --border-hover: #c8c8d4;
  --text: #1a1a2e;
  --text-secondary: #4a4a5c;
  --text-muted: #8888a0;
  --primary: #E93D82;
  --primary-hover: #D32D6C;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Animated Gradient Canvas ── */

#gradient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Header ── */

.app-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Ensure content layers above the gradient canvas */
.faq-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.app-header .header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-header .logo {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text);
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

/* ── FAQ Section ── */

.faq-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.faq-inner {
  text-align: center;
}

.faq-inner h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 48px;
}

/* ── FAQ Items ── */

.faq-list {
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item a {
  color: var(--primary);
  text-decoration: none;
}

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

/* ── Legal content (Terms, Privacy) ── */

.legal-content {
  text-align: left;
}

.legal-content h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 12px;
  padding-left: 0;
}

.legal-content ul li {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}

.legal-content ul li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--text-muted);
}

.legal-content strong {
  font-weight: 500;
  color: var(--text);
}

/* ── Footer ── */

.site-footer {
  background: var(--surface);
  padding: 32px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .faq-section {
    padding: 40px 16px 60px;
  }
  .faq-inner h1 {
    font-size: 1.5rem;
  }
}
