/* eslint-disable */
// Privacy & cookies, the long-form policy page (multilingual).

const PRIVACY = {
  nl: {
    title: 'Privacy- en cookieverklaring',
    updated: 'Laatst bijgewerkt: 18 mei 2026',
    sections: [
      { h: '1. Wie zijn wij', p: [
        "Curaçao Business Magazine (\"CBM\", \"wij\", \"ons\") is de digitale zakelijke publicatie van Curaçao, bereikbaar via www.cbm.cw. Wij zijn de verantwoordelijke voor de verwerking van uw persoonsgegevens zoals beschreven in deze verklaring.",
        "Deze verklaring voldoet aan de Landsverordening Bescherming Persoonsgegevens (LBP) van Curaçao en aan de Algemene Verordening Gegevensbescherming (AVG/GDPR) voor zover wij gegevens van bezoekers uit de EU verwerken.",
      ]},
      { h: '2. Welke gegevens wij verwerken', p: [
        "Wij verwerken alleen gegevens die u zelf aan ons verstrekt of die automatisch worden vastgelegd wanneer u onze website bezoekt: contactgegevens (naam, e-mailadres, telefoonnummer) bij sollicitaties, bedrijfsregistraties, advertentie-aanvragen en nieuwsbriefinschrijvingen; technische gegevens (IP-adres, browser, apparaattype) voor beveiliging en statistieken; en gedragsgegevens (bezochte pagina's) wanneer u toestemming hebt gegeven voor analytische cookies.",
      ]},
      { h: '3. Doelen en grondslagen', p: [
        "Wij gebruiken uw gegevens voor: het beantwoorden van uw aanvragen (uitvoering overeenkomst); het doorsturen van sollicitaties naar de werkgever (gerechtvaardigd belang en toestemming); de verzending van de nieuwsbrief (toestemming, die u te allen tijde kunt intrekken); het meten van het gebruik van de site (toestemming via cookies); en het voldoen aan wettelijke verplichtingen.",
      ]},
      { h: '4. Cookies', p: [
        "Onze website plaatst drie soorten cookies. **Noodzakelijke cookies** zijn vereist voor het functioneren van de site (taalkeuze, sessie). Deze worden altijd geplaatst. **Analytische cookies** helpen ons begrijpen hoe bezoekers de site gebruiken, geanonimiseerd. **Marketingcookies** worden gebruikt voor relevante advertenties en het meten van campagnes. Voor de laatste twee categorieën vragen wij uw toestemming.",
        "U kunt uw toestemming op elk moment intrekken of aanpassen via de link 'Cookie-instellingen' onderaan elke pagina.",
      ]},
      { h: '5. Hoe lang bewaren wij gegevens', p: [
        "Sollicitatiegegevens worden niet langer dan 6 weken bewaard nadat de procedure is afgerond, tenzij u toestemming geeft voor langere bewaring. Contact- en aanvraaggegevens bewaren wij maximaal 24 maanden. Nieuwsbriefgegevens bewaren wij totdat u zich uitschrijft. Boekhoudkundige gegevens bewaren wij conform wettelijke termijnen (7 jaar).",
      ]},
      { h: '6. Met wie wij gegevens delen', p: [
        "Wij delen uw gegevens niet met derden, behalve: met werkgevers bij wie u solliciteert (alleen de gegevens uit uw sollicitatieformulier); met onze technische dienstverleners (hosting bij Cloudflare, formulier-afhandeling bij Formspree, AI-assistent bij Anthropic) onder strikte verwerkersovereenkomsten; en wanneer wettelijke verplichtingen daartoe nopen.",
      ]},
      { h: '7. Doorgifte buiten Curaçao', p: [
        "Sommige van onze dienstverleners zijn gevestigd in de Verenigde Staten of de Europese Unie. Doorgifte vindt plaats op basis van passende waarborgen (Standard Contractual Clauses) zoals voorgeschreven door de AVG en de Curaçaose LBP.",
      ]},
      { h: '8. Uw rechten', p: [
        "U heeft het recht op inzage in, correctie van en verwijdering van uw gegevens. U kunt bezwaar maken tegen verwerking, beperking vragen, of een verzoek tot dataportabiliteit indienen. U heeft tevens het recht om een klacht in te dienen bij de Autoriteit Persoonsgegevens (Curaçao). Stuur uw verzoek aan info@cbm.cw.",
      ]},
      { h: '9. Beveiliging', p: [
        "Wij nemen passende technische en organisatorische maatregelen om uw gegevens te beschermen tegen verlies, ongeoorloofde toegang en misbruik. Alle gegevens worden uitsluitend via HTTPS uitgewisseld.",
      ]},
      { h: '10. Wijzigingen', p: [
        "Wij kunnen deze verklaring van tijd tot tijd aanpassen. De meest recente versie is altijd op deze pagina beschikbaar. Bij ingrijpende wijzigingen informeren wij u via een banner op de site of via de nieuwsbrief.",
      ]},
      { h: '11. Contact', p: [
        "Vragen over privacy of cookies? Mail naar info@cbm.cw of stuur een brief aan: Curaçao Business Magazine, Willemstad, Curaçao.",
      ]},
    ],
  },
  en: {
    title: 'Privacy & cookie statement',
    updated: 'Last updated: May 18, 2026',
    sections: [
      { h: '1. Who we are', p: [
        "Curaçao Business Magazine (\"CBM\", \"we\", \"us\") is the digital business publication of Curaçao, accessible at www.cbm.cw. We are the controller for the processing of your personal data as described in this statement.",
        "This statement complies with Curaçao's Landsverordening Bescherming Persoonsgegevens (LBP) and with the EU General Data Protection Regulation (GDPR) where we process data of visitors from the EU.",
      ]},
      { h: '2. What data we process', p: [
        "We only process data that you provide to us, or that is automatically recorded when you visit our site: contact details (name, email, phone) when you apply, register a business, request advertising, or subscribe to our newsletter; technical data (IP address, browser, device) for security and statistics; and behavioural data (pages visited) where you have consented to analytics cookies.",
      ]},
      { h: '3. Purposes and legal bases', p: [
        "We use your data to: respond to your enquiries (contract performance); forward applications to the hiring employer (legitimate interest and consent); send the newsletter (consent, withdrawable at any time); measure site usage (cookie consent); and meet legal obligations.",
      ]},
      { h: '4. Cookies', p: [
        "Our site sets three categories of cookies. Necessary cookies are required for the site to function (language choice, session). They are always set. Analytics cookies help us understand how visitors use the site, anonymised. Marketing cookies are used for relevant advertising and campaign measurement. For the last two categories we ask your consent.",
        "You can withdraw or adjust your consent at any time via the 'Cookie settings' link at the bottom of every page.",
      ]},
      { h: '5. How long we keep data', p: [
        "Application data is kept for no longer than 6 weeks after the recruitment process ends, unless you give consent for longer retention. Contact and enquiry data is kept for up to 24 months. Newsletter data is kept until you unsubscribe. Accounting data is retained for statutory periods (7 years).",
      ]},
      { h: '6. Who we share data with', p: [
        "We do not share your data with third parties except: with employers to whom you apply (only the data on your application form); with our technical service providers (hosting via Cloudflare, form handling via Formspree, AI assistant via Anthropic) under strict data-processing agreements; and where legal obligations require us to.",
      ]},
      { h: '7. International transfers', p: [
        "Some of our service providers are located in the United States or the European Union. Transfers take place on the basis of appropriate safeguards (Standard Contractual Clauses) as required by the GDPR and Curaçao's LBP.",
      ]},
      { h: '8. Your rights', p: [
        "You have the right to access, rectify and erase your data. You may object to processing, request restriction, or request data portability. You also have the right to lodge a complaint with the Curaçao Data Protection Authority. Submit your request to info@cbm.cw.",
      ]},
      { h: '9. Security', p: [
        "We take appropriate technical and organisational measures to protect your data against loss, unauthorised access and misuse. All data is exchanged exclusively over HTTPS.",
      ]},
      { h: '10. Changes', p: [
        "We may update this statement from time to time. The current version is always available on this page. For substantial changes we notify you via a banner on the site or via the newsletter.",
      ]},
      { h: '11. Contact', p: [
        "Questions about privacy or cookies? Email info@cbm.cw or write to: Curaçao Business Magazine, Willemstad, Curaçao.",
      ]},
    ],
  },
  pap: {
    title: 'Deklarashon di privacidat i cookies',
    updated: 'Último akualisashon: 18 di mei 2026',
    sections: [
      { h: '1. Ken nos ta', p: [
        "Curaçao Business Magazine (\"CBM\") ta e publikashon digital di negoshi di Kòrsou, aksesibel via www.cbm.cw. Nos ta e responsabel pa e prosesamentu di bo data personal manera deskribí den e deklarashon aki.",
      ]},
      { h: '2. Kiko nos ta prosesá', p: [
        "Nos ta prosesá solamente data ku bo mes ta entregá òf ku ta wòrdu rekòrd ora bo bishitá nos sitio: datos di kontakto pa aplikashon i suskripshon, datos téknico pa siguridat i estadístika, i datos di gedrag (bishita di página) ku bo permiso.",
      ]},
      { h: '3. Propósito i base legal', p: [
        "Nos ta usa bo data pa kontestá bo petishon, manda aplikashonan na empresanan, manda boletin (ku permiso), midi uso di sitio i kumpli ku obligashonan legal.",
      ]},
      { h: '4. Cookies', p: [
        "Nos ta usa tres tipo di cookie: nesesario, analítiko i marketing. Bo por akseptá òf rechasá cookies via e link 'Konfigurashon di cookie' abou riba kada página.",
      ]},
      { h: '5. Bo derechonan', p: [
        "Bo tin derecho di ehersé akseso, korekshon, supreshon, hasi opozishon, restrikshon i portabilidat. Kontakto: info@cbm.cw.",
      ]},
      { h: '6. Kontakto', p: [
        "Pa pregunta tokante privacidat i cookies: info@cbm.cw, Curaçao Business Magazine, Willemstad, Kòrsou.",
      ]},
    ],
  },
  es: {
    title: 'Declaración de privacidad y cookies',
    updated: 'Última actualización: 18 de mayo de 2026',
    sections: [
      { h: '1. Quiénes somos', p: [
        "Curaçao Business Magazine (\"CBM\") es la publicación digital de negocios de Curazao, accesible en www.cbm.cw. Somos el responsable del tratamiento de tus datos personales descritos en esta declaración.",
        "Esta declaración cumple con la Landsverordening Bescherming Persoonsgegevens (LBP) de Curazao y, cuando proceda, con el RGPD de la UE.",
      ]},
      { h: '2. Qué datos tratamos', p: [
        "Tratamos los datos que tú nos facilitas (nombre, correo, teléfono) y los datos técnicos que se registran automáticamente (IP, navegador, dispositivo) por motivos de seguridad y estadísticas. Si das tu consentimiento, también utilizamos cookies analíticas.",
      ]},
      { h: '3. Finalidades y bases legales', p: [
        "Usamos tus datos para responder a tus solicitudes, enviar candidaturas al empleador, mandar el boletín (con tu consentimiento), medir el uso del sitio y cumplir con las obligaciones legales.",
      ]},
      { h: '4. Cookies', p: [
        "Usamos cookies necesarias, analíticas y de marketing. Puedes ajustar tu consentimiento en cualquier momento desde el enlace 'Ajustes de cookies' al pie de cada página.",
      ]},
      { h: '5. Tus derechos', p: [
        "Tienes derecho a acceso, rectificación, supresión, oposición, limitación y portabilidad. Solicítalo en info@cbm.cw.",
      ]},
      { h: '6. Contacto', p: [
        "Curaçao Business Magazine, info@cbm.cw, Willemstad, Curazao.",
      ]},
    ],
  },
  de: {
    title: 'Datenschutz- und Cookie-Erklärung',
    updated: 'Stand: 18. Mai 2026',
    sections: [
      { h: '1. Wer wir sind', p: [
        "Curaçao Business Magazine (\"CBM\") ist die digitale Wirtschaftspublikation Curaçaos, erreichbar unter www.cbm.cw. Wir sind verantwortlich für die Verarbeitung Ihrer personenbezogenen Daten gemäß dieser Erklärung.",
        "Diese Erklärung entspricht der Landsverordening Bescherming Persoonsgegevens (LBP) Curaçaos und, soweit anwendbar, der EU-Datenschutz-Grundverordnung (DSGVO).",
      ]},
      { h: '2. Welche Daten wir verarbeiten', p: [
        "Wir verarbeiten Daten, die Sie uns selbst übermitteln (Name, E-Mail, Telefon), und technische Daten (IP, Browser, Gerät) zu Sicherheits- und Statistikzwecken. Mit Ihrer Einwilligung nutzen wir auch Analyse-Cookies.",
      ]},
      { h: '3. Zwecke und Rechtsgrundlagen', p: [
        "Wir nutzen Ihre Daten für die Beantwortung Ihrer Anfragen, die Weiterleitung von Bewerbungen, den Versand des Newsletters (Einwilligung), die Reichweitenmessung und zur Erfüllung gesetzlicher Pflichten.",
      ]},
      { h: '4. Cookies', p: [
        "Wir verwenden notwendige, Analyse- und Marketing-Cookies. Sie können Ihre Einwilligung jederzeit über den Link \"Cookie-Einstellungen\" am Seitenende anpassen.",
      ]},
      { h: '5. Ihre Rechte', p: [
        "Sie haben das Recht auf Auskunft, Berichtigung, Löschung, Widerspruch, Einschränkung und Datenübertragbarkeit. Anfragen bitte an info@cbm.cw.",
      ]},
      { h: '6. Kontakt', p: [
        "Curaçao Business Magazine, info@cbm.cw, Willemstad, Curaçao.",
      ]},
    ],
  },
};

const PrivacyScreen = () => {
  const { lang } = (window.useLang && window.useLang()) || { lang: 'nl' };
  const t = (window.useT && window.useT()) || ((k) => k);
  const doc = PRIVACY[lang] || PRIVACY.nl || PRIVACY.en;

  React.useEffect(() => { window.scrollTo({top: 0, behavior: 'instant'}); }, []);

  return (
    <div data-screen-label="Privacy">
      <section className="cbm-section cbm-section--dark" style={{paddingBottom: 32}}>
        <div className="cbm-section__inner" style={{maxWidth: 820}}>
          <span className="cbm-eyebrow">{t('privacy_eyebrow')}</span>
          <div className="cbm-section-rule" />
          <h1 className="cbm-section__title">{doc.title}</h1>
          <p className="cbm-section__lede" style={{marginTop: 14, fontSize: 14, color: 'rgba(255,255,255,0.75)'}}>{doc.updated}</p>
        </div>
      </section>
      <section className="cbm-section">
        <div className="cbm-section__inner" style={{maxWidth: 820}}>
          <article className="cbm-privacy">
            {doc.sections.map((s, i) => (
              <section key={i}>
                <h2>{s.h}</h2>
                {s.p.map((p, j) => <p key={j} dangerouslySetInnerHTML={{__html: p.replace(/\*\*([^*]+)\*\*/g, '<strong>$1</strong>')}} />)}
              </section>
            ))}
            <div className="cbm-privacy__cta">
              <button className="cbm-btn cbm-btn--ghost" onClick={() => window.dispatchEvent(new CustomEvent('cbm:openconsent'))}>
                {t('consent_adjust')}
              </button>
            </div>
          </article>
        </div>
      </section>
    </div>
  );
};

Object.assign(window, { PrivacyScreen, PRIVACY });
