/** * Shared Privacy, Data Protection & Tech Independence FAQ content * Reusable across all apps — covers GDPR, encryption, self-hosting, * tech stack independence, data export, account deletion */ import type { FAQItem } from './content.js'; export interface PrivacyFAQOptions { /** * What kind of data does the app handle? * Used in the main privacy FAQ to make it specific. * @example 'Aufgaben' / 'tasks', 'Dateien' / 'files', 'Chats' / 'chats' */ dataTypeDE: string; dataTypeEN: string; /** * Optional extra bullet points for the main privacy FAQ (app-specific). * Each entry is a single `
  • ` string (without the `
  • ` tags). * @example ['Lokale Modelle: Deine Daten verlassen nie unseren Server'] */ extraBulletsDE?: string[]; extraBulletsEN?: string[]; } /** * Returns shared FAQ items covering privacy, data protection, and tech independence. * The main privacy FAQ can be customized per app via options. * * @example * ```ts * import { getPrivacyFAQs } from './content'; * * const privacyFAQs = getPrivacyFAQs(locale, { * dataTypeDE: 'Aufgaben', * dataTypeEN: 'tasks', * extraBulletsDE: ['Offline: Funktioniert auch ohne Internet'], * extraBulletsEN: ['Offline: Works without internet'], * }); * ``` */ export function getPrivacyFAQs(locale: string, options: PrivacyFAQOptions): FAQItem[] { const isDE = locale === 'de'; const extraDE = (options.extraBulletsDE || []).map((b) => `
  • ${b}
  • `).join(''); const extraEN = (options.extraBulletsEN || []).map((b) => `
  • ${b}
  • `).join(''); return [ { id: 'faq-privacy', question: isDE ? `Wie werden meine ${options.dataTypeDE} geschützt?` : `How are my ${options.dataTypeEN} protected?`, answer: isDE ? `

    Deine Daten sind sicher bei Mana:

    ` : `

    Your data is secure with Mana:

    `, category: 'privacy', order: 95, language: isDE ? 'de' : 'en', featured: true, tags: isDE ? ['datenschutz', 'dsgvo', 'sicherheit', 'verschlüsselung'] : ['privacy', 'gdpr', 'security', 'encryption'], }, { id: 'faq-tech-independence', question: isDE ? 'Wie unabhängig ist Mana von großen Tech-Konzernen?' : 'How independent is Mana from big tech companies?', answer: isDE ? '

    Mana ist bewusst technologisch unabhängig aufgebaut:

    Das Ziel: Ein digitales Zuhause, das dir gehört — nicht Big Tech.

    ' : '

    Mana is deliberately built to be technologically independent:

    The goal: A digital home that belongs to you — not big tech.

    ', category: 'privacy', order: 96, language: isDE ? 'de' : 'en', featured: true, tags: isDE ? ['unabhängig', 'self-hosted', 'eigene-server', 'kein-google', 'kein-aws'] : ['independent', 'self-hosted', 'own-servers', 'no-google', 'no-aws'], }, { id: 'faq-data-export', question: isDE ? 'Kann ich meine Daten exportieren?' : 'Can I export my data?', answer: isDE ? '

    Ja! Du hast jederzeit volle Kontrolle über deine Daten:

    ' : '

    Yes! You have full control over your data at all times:

    ', category: 'privacy', order: 97, language: isDE ? 'de' : 'en', tags: isDE ? ['export', 'daten', 'portabilität', 'dsgvo', 'offene-formate'] : ['export', 'data', 'portability', 'gdpr', 'open-formats'], }, { id: 'faq-account-deletion', question: isDE ? 'Kann ich mein Konto löschen?' : 'Can I delete my account?', answer: isDE ? '

    Ja, jederzeit:

    Wir empfehlen, vorher einen Datenexport durchzuführen.

    ' : '

    Yes, at any time:

    We recommend performing a data export beforehand.

    ', category: 'privacy', order: 98, language: isDE ? 'de' : 'en', tags: isDE ? ['konto', 'löschen', 'daten', 'entfernen'] : ['account', 'delete', 'data', 'remove'], }, ]; }