/* FaqSection + Footer */
function FaqSection({ lang }) {
  const { Accordion } = window.OasisFreshMarketEBTSNAPGuideDesignSystem_23fc30;
  const items = [
    { q: { en: 'Who can get SNAP in Oklahoma?', es: '¿Quién puede recibir SNAP en Oklahoma?' },
      a: { en: 'Most households at or below 130% of the federal poverty line. Workers, seniors, families, and people with disabilities can all qualify — many people who are eligible never apply.', es: 'La mayoría de los hogares con ingresos del 130% del nivel de pobreza o menos. Trabajadores, adultos mayores, familias y personas con discapacidad pueden calificar — muchas personas elegibles nunca solicitan.' } },
    { q: { en: 'Can I buy hot or prepared food?', es: '¿Puedo comprar comida caliente o preparada?' },
      a: { en: 'Usually no. SNAP covers groceries you cook at home. Hot deli meals and ready-to-eat food are not covered. Cold deli items by the pound usually are.', es: 'Normalmente no. SNAP cubre comida que cocinas en casa. Las comidas calientes y listas para comer no están cubiertas. Los productos fríos por libra normalmente sí.' } },
    { q: { en: 'What changed for 2026?', es: '¿Qué cambió en 2026?' },
      a: { en: 'Starting February 15, 2026, Oklahoma no longer allows SNAP to be used for candy and soft drinks. Everything else covered before is still covered.', es: 'Desde el 15 de febrero de 2026, Oklahoma ya no permite usar SNAP para dulces y refrescos. Todo lo demás que estaba cubierto sigue cubierto.' } },
    { q: { en: 'How do I check my balance?', es: '¿Cómo reviso mi saldo?' },
      a: { en: 'Visit ConnectEBT.com, use the ConnectEBT app, or call the number on the back of your card. Your last receipt also shows your balance.', es: 'Visita ConnectEBT.com, usa la app ConnectEBT, o llama al número detrás de tu tarjeta. Tu último recibo también muestra tu saldo.' } },
    { q: { en: 'Will using SNAP affect my immigration status?', es: '¿Usar SNAP afecta mi estatus migratorio?' },
      a: { en: 'SNAP is not part of the "public charge" test. Many families with mixed immigration status can apply for eligible members. When in doubt, ask a trusted local nonprofit or an Oasis helper.', es: 'SNAP no es parte de la prueba de "carga pública". Muchas familias con estatus mixto pueden solicitar para miembros elegibles. Si tienes dudas, pregunta a una organización local de confianza o a un ayudante de Oasis.' } },
  ];

  return (
    <section id="faq" style={{ background: 'var(--surface-sunk)', padding: 'var(--space-20) 0' }}>
      <div className="oasis-narrow">
        <SectionHead center eyebrow={t(lang, 'Questions', 'Preguntas')} title={t(lang, 'Good questions, clear answers', 'Buenas preguntas, respuestas claras')} />
        <Accordion items={items.map((it) => ({ q: t(lang, it.q.en, it.q.es), a: t(lang, it.a.en, it.a.es) }))} />
      </div>
    </section>
  );
}

function Footer({ lang }) {
  return (
    <footer style={{ background: 'var(--surface-forest-deep)', color: 'var(--text-on-forest)', padding: 'var(--space-16) 0 var(--space-10)' }}>
      <div className="oasis-container">
        <div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(220px, 1fr))', gap: 'var(--space-8)', alignItems: 'start' }}>
          <div>
            <img src="../../assets/brand/oasis-logo-cream.png" alt="Oasis Fresh Market" style={{ height: 54, marginBottom: 16 }} />
            <p style={{ color: 'var(--text-on-forest-muted)', fontSize: 'var(--fs-small)', maxWidth: 280 }}>
              {t(lang, 'A community grocery store and EBT/SNAP guide for Oklahoma.', 'Una tienda comunitaria y guía de EBT/SNAP para Oklahoma.')}
            </p>
          </div>
          <div>
            <div style={{ fontWeight: 'var(--fw-bold)', color: 'var(--cream-50)', marginBottom: 12 }}>{t(lang, 'Helpful links', 'Enlaces útiles')}</div>
            <ul style={{ listStyle: 'none', padding: 0, margin: 0, display: 'flex', flexDirection: 'column', gap: 8 }}>
              {[
                { en: 'Apply — OKDHSLive.org', href: 'https://www.okdhslive.org' },
                { en: 'Check balance — ConnectEBT.com', href: 'https://www.connectebt.com' },
                { en: 'Oasis Fresh Market', href: 'https://www.oasisfreshmarkets.net/' },
              ].map((l) => (
                <li key={l.en}><a href={l.href} target="_blank" style={{ color: 'var(--text-on-forest-muted)', textDecoration: 'none', fontSize: 'var(--fs-small)' }}>{l.en}</a></li>
              ))}
            </ul>
          </div>
          <div>
            <div style={{ fontWeight: 'var(--fw-bold)', color: 'var(--cream-50)', marginBottom: 12 }}>{t(lang, 'Need help now?', '¿Necesitas ayuda ahora?')}</div>
            <p style={{ color: 'var(--text-on-forest-muted)', fontSize: 'var(--fs-small)', margin: 0 }}>
              {t(lang, 'Oklahoma DHS', 'DHS de Oklahoma')}: <strong style={{ color: 'var(--cream-50)' }}>405-522-5050</strong><br />
              {t(lang, 'Food help', 'Ayuda con comida')}: <strong style={{ color: 'var(--cream-50)' }}>2-1-1</strong>
            </p>
          </div>
        </div>
        <div style={{ borderTop: '1px solid var(--forest-600)', marginTop: 'var(--space-10)', paddingTop: 'var(--space-6)', color: 'var(--text-on-forest-muted)', fontSize: 'var(--fs-caption)' }}>
          {t(lang, 'This guide is for general information and is not legal advice. Program rules can change — confirm details with Oklahoma DHS. Built with care for the Oasis community.', 'Esta guía es información general y no es asesoría legal. Las reglas pueden cambiar — confirma los detalles con DHS de Oklahoma. Hecho con cariño para la comunidad Oasis.')}
        </div>
      </div>
    </footer>
  );
}
Object.assign(window, { FaqSection, Footer });
