import React from 'react';
import { Head, Link } from '@inertiajs/react';
import MarketingLayout from '@/layouts/MarketingLayout';
import { usePage } from '@inertiajs/react';

const Impressum: React.FC = () => {
  const { props } = usePage();
  const { __ } = props as any; // Für i18n

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

export default Impressum;