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 Impressum: React.FC = () => {
  const { t } = useTranslation('legal');
  const { localizedPath } = useLocalizedRoutes();

  return (
    <MarketingLayout title={t('impressum_title')}>
      <Head title={t('impressum_title')} />
      <div className="container mx-auto px-4 py-8">
        <h1 className="text-2xl font-bold mb-4 font-display">{t('impressum')}</h1>
        <p className="mb-4 font-sans-marketing">{t('impressum_section')}</p>
        <p className="mb-4 font-sans-marketing">
          {t('company')}<br />
          {t('address')}<br />
          {t('representative')}<br />
          {t('contact')}: <Link href={localizedPath('/kontakt')}>{t('contact')}</Link>
        </p>
        <p className="mb-4 font-sans-marketing">{t('vat_id')}</p>
        <h2 className="text-xl font-semibold mb-2 font-display">{t('monetization')}</h2>
        <p className="mb-4 font-sans-marketing">{t('monetization_desc')}</p>
        <p className="mb-4 font-sans-marketing">{t('register_court')}</p>
        <p className="mb-4 font-sans-marketing">{t('commercial_register')}</p>
      </div>
    </MarketingLayout>
  );
};

export default Impressum;