<?php
/**
 * Plattr — Privacy Policy entry point.
 *
 * The full privacy policy lives in the combined legal document (terms.php),
 * which the in-app "Privacy Policy" link (App Store Guideline 5.1.1) and the
 * App Store Connect "Privacy Policy URL" field both point at via the clean
 * /privacy URL. We 301 to the privacy section of that page so there's a single
 * source of truth for the legal copy.
 *
 * Served at /privacy (nginx try_files appends .php) and /privacy.php.
 */
declare(strict_types=1);
header('Location: /terms#privacy', true, 301);
header('Cache-Control: public, max-age=3600');
echo '<!doctype html><meta charset="utf-8"><title>Privacy Policy — Plattr</title>'
   . '<meta http-equiv="refresh" content="0; url=/terms#privacy">'
   . '<p>Redirecting to the <a href="/terms#privacy">Plattr Privacy Policy</a>…</p>';
