$lang === 'de' ? 'Datenschutzerklärung' : 'Privacy Policy',
'controller' => $lang === 'de' ? 'Verantwortlicher' : 'Controller',
'address' => $lang === 'de' ? 'Adresse' : 'Address',
'contact' => $lang === 'de' ? 'Kontakt für Datenschutz' : 'Privacy contact',
'hosting' => $lang === 'de' ? 'Hosting' : 'Hosting',
'logs' => $lang === 'de' ? 'Server-Logs' : 'Server logs',
'cookies' => $lang === 'de' ? 'Cookies' : 'Cookies',
'purposes' => $lang === 'de' ? 'Zwecke der Datenverarbeitung' : 'Purposes of processing',
'rights' => $lang === 'de' ? 'Ihre Rechte' : 'Your rights',
'last_updated' => $lang === 'de' ? 'Stand' : 'Last updated',
];
function privacy_item(string $label, ?string $value): void {
$value = trim((string) $value);
if ($value === '') return;
echo '
' . e($label) . '' . nl2br(e($value)) . '
';
}
$rights = $lang === 'de'
? 'Auskunft, Berichtigung, Löschung, Einschränkung, Datenübertragbarkeit, Widerspruch, Beschwerde bei der Datenschutzbehörde.'
: 'Access, rectification, erasure, restriction, data portability, objection, complaint to the data protection authority.';
$logInfo = '';
if (!empty($privacy['log_retention_days'])) {
$logInfo = ($lang === 'de'
? 'Server-Logs (IP-Adresse, Zeitpunkt, URL, User-Agent) werden zur Betriebssicherheit gespeichert und nach '
: 'Server logs (IP address, timestamp, URL, user agent) are kept for security and deleted after ')
. intval($privacy['log_retention_days']) . ($lang === 'de' ? ' Tagen gelöscht.' : ' days.');
}
$pageTitle = e($t['title']) . ' | FlixCooks';
$description = $lang === 'de'
? 'Informationen gemäß DSGVO und TKG über die Verarbeitung personenbezogener Daten.'
: 'Information per GDPR and TKG on how personal data is processed.';
include __DIR__ . '/partials/head.php';
include __DIR__ . '/partials/header.php';
?>