/* ============================================================
   FAQ PAGE — faq.css
   Design language inherited from tos.css / article-detail.css
   Typography: Poppins (headings) + Inter (body)
   Accents: #f97316 orange, #00c67a green
   ============================================================ */

/* ── Base resets ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #f4f6f8 !important;
  font-family: 'Inter', sans-serif;
  display: block !important;
}

/* ── BACK BUTTON ── */
.legal-back {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.legal-back:hover {
  border-color: #f97316;
  color: #f97316;
  transform: translateX(-2px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.15);
}
.legal-back svg { flex-shrink: 0; }

/* ── HERO ── */
.legal-hero {
  background: #fff;
  border-bottom: 1px solid #efefef;
  padding: 80px 48px 48px;
  position: relative;
  overflow: hidden;
}
.legal-hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.legal-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.legal-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f97316;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.18);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.legal-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.legal-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #888;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 24px;
}
.legal-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.legal-meta-badge {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  background: #f4f4f4;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid #efefef;
}

/* ── FILTER PILLS ── */
.faq-filter-wrap {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.faq-filter {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.faq-filter::-webkit-scrollbar { display: none; }
.faq-pill {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  background: #f4f4f4;
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
}
.faq-pill:hover {
  color: #f97316;
  background: rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.2);
}
.faq-pill.active {
  color: #fff;
  background: #f97316;
  border-color: #f97316;
}

/* ── MAIN GRID ── */
#faq-main {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 48px 100px;
  align-items: start;
}

/* ── SIDEBAR TOC ── */
.legal-toc {
  position: sticky;
  top: 68px; /* below sticky filter bar */
  background: #fff;
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #efefef;
  align-self: start;
  width: 100%;
  min-width: 0;
}
.legal-toc-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  padding: 0 8px;
  margin-bottom: 6px;
}
.legal-toc a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s;
  line-height: 1.4;
  border-left: 2px solid transparent;
}
.legal-toc a:hover,
.legal-toc a.toc-active {
  color: #111;
  background: #f5f5f5;
  border-left-color: #f97316;
  padding-left: 12px;
}
.faq-toc-contact {
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px !important;
  color: #f97316 !important;
  font-weight: 600 !important;
}
.faq-toc-contact:hover { background: rgba(249,115,22,0.06) !important; }

/* ── FAQ BODY ── */
.faq-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* ── SECTION LABEL ── */
.faq-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #aaa;
  margin: 32px 0 10px;
  padding: 0 4px;
}
.faq-section-label:first-child { margin-top: 0; }
.faq-section-icon { font-size: 14px; }

/* ── FAQ CARD (accordion item) ── */
.faq-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq-card:hover {
  border-color: rgba(249,115,22,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.faq-card.open {
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 4px 24px rgba(249,115,22,0.08);
}

/* Question button */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  transition: color 0.15s;
}
.faq-q:hover { color: #f97316; }
.faq-card.open .faq-q { color: #f97316; }

/* Chevron */
.faq-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #ccc;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), color 0.15s;
}
.faq-card.open .faq-chevron {
  transform: rotate(180deg);
  color: #f97316;
}

/* Answer panel */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
              padding 0.28s ease;
  padding: 0 24px;
}
.faq-card.open .faq-a {
  max-height: 600px;
  padding: 0 24px 22px;
}

.faq-a p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 10px;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a p strong { color: #111; font-weight: 600; }

/* Callout inside answer */
.faq-callout {
  background: rgba(249,115,22,0.05);
  border-left: 3px solid #f97316;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #c2410c;
  line-height: 1.6;
}

/* List inside answer */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-list li {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  background: #f9f9f9;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.6;
  transition: background 0.15s, border-color 0.15s;
}
.faq-list li:hover {
  background: #fff;
  border-color: rgba(249,115,22,0.2);
}
.faq-list li strong { color: #111; font-weight: 700; }

/* Inline link */
.faq-link {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(249,115,22,0.3);
  transition: border-color 0.15s;
}
.faq-link:hover { border-color: #f97316; }

/* ── CONTACT CARD ── */
.faq-contact-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
  padding: 36px 32px;
  margin-top: 32px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.faq-contact-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.faq-contact-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.faq-contact-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 20px;
}

/* ── SHARED — contact link ── */
.legal-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.legal-contact-link:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.legal-also-see {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #aaa;
  margin-top: 4px;
}
.legal-also-see a {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
}
.legal-also-see a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.legal-footer {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 22px 48px;
}
.legal-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #aaa;
}
.legal-footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.legal-footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
}
.legal-footer-links a:hover { color: #111; }
.legal-footer-links a.active { color: #f97316; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  #faq-main {
    grid-template-columns: 1fr;
    padding: 24px 20px 80px;
    gap: 16px;
  }
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }
  .legal-toc-label { width: 100%; margin-bottom: 4px; }
  .legal-toc a { font-size: 11px; padding: 5px 8px; }
  .faq-toc-contact { margin-top: 0; border-top: none; padding-top: 5px !important; }
  .legal-hero { padding: 72px 20px 36px; }
  .faq-filter-wrap { padding: 0 20px; }
  .legal-footer { padding: 18px 20px; }
  .legal-footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .legal-back { top: 12px; left: 12px; }
}

@media (max-width: 480px) {
  .legal-hero-title { font-size: 28px; }
  .faq-q { font-size: 14px; padding: 16px 18px; }
  .faq-a { padding: 0 18px; }
  .faq-card.open .faq-a { padding: 0 18px 18px; }
  .faq-contact-card { padding: 28px 20px; }
}