import React from 'react';
import { Head, Link } from '@inertiajs/react';
import { useTranslation } from 'react-i18next';
import MarketingLayout from '@/layouts/mainWebsite';
import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes';

const Datenschutz: React.FC = () => {
  const { t } = useTranslation('legal');
  const { localizedPath } = useLocalizedRoutes();

  return (
    <MarketingLayout title={t('datenschutz_title')}>
      <Head title={t('datenschutz_title')} />
      <div className="container mx-auto px-4 py-8">
        <h1 className="text-2xl font-bold mb-4 font-display">{t('datenschutz')}</h1>
        <p className="mb-4 font-sans-marketing">{t('datenschutz_intro')}</p>
        <p className="mb-4 font-sans-marketing">{t('responsible')}</p>
        <p className="mb-4 font-sans-marketing">{t('data_collection')}</p>
        <h2 className="text-xl font-semibold mb-2 font-display">{t('payments')}</h2>
        <p className="mb-4 font-sans-marketing">
          {t('payments_desc')} <a href="https://stripe.com/de/privacy" target="_blank" rel="noopener noreferrer">{t('stripe_privacy')}</a> {t('and')} <a href="https://www.paypal.com/de/webapps/mpp/ua/privacy-full" target="_blank" rel="noopener noreferrer">{t('paypal_privacy')}</a>.
        </p>
        <p className="mb-4 font-sans-marketing">{t('data_retention')}</p>
        <p className="mb-4 font-sans-marketing">
          {t('rights')} <Link href={localizedPath('/kontakt')}>{t('contact')}</Link>.
        </p>
        <p className="mb-4 font-sans-marketing">{t('cookies')}</p>

        <h2 className="text-xl font-semibold mb-2 font-display">{t('personal_data')}</h2>
        <p className="mb-4 font-sans-marketing">{t('personal_data_desc')}</p>

        <h2 className="text-xl font-semibold mb-2 font-display">{t('account_deletion')}</h2>
        <p className="mb-4 font-sans-marketing">{t('account_deletion_desc')}</p>

        <h2 className="text-xl font-semibold mb-2 font-display">{t('data_security')}</h2>
        <p className="mb-4 font-sans-marketing">{t('data_security_desc')}</p>
      </div>
    </MarketingLayout>
  );
};

export default Datenschutz;