import type { Metadata } from "next";
import { siteConfig } from "@/lib/site-config";

export const metadata: Metadata = { title: "Impressum" };

export default function ImpressumPage() {
  return (
    <div className="mx-auto max-w-2xl px-6 py-section">
      <h1 className="font-display text-section-title text-secondary">Impressum</h1>

      <div className="mt-8 space-y-6 text-sm leading-relaxed text-gray-700">
        <section>
          <h2 className="font-semibold text-secondary">Verantwortlich für den Inhalt</h2>
          <p>
            {siteConfig.name}
            <br />
            {siteConfig.sensei.name}
            <br />
            {siteConfig.postalAddress.street}
            <br />
            {siteConfig.postalAddress.zip} {siteConfig.postalAddress.city}, {siteConfig.postalAddress.canton}
          </p>
        </section>
        <section>
          <h2 className="font-semibold text-secondary">Trainingsort</h2>
          <p>
            {siteConfig.address.building}
            <br />
            {siteConfig.address.street && (
              <>
                {siteConfig.address.street}
                <br />
              </>
            )}
            {siteConfig.address.zip} {siteConfig.address.city}, {siteConfig.address.canton}
          </p>
        </section>
        <section>
          <h2 className="font-semibold text-secondary">Kontakt</h2>
          <p>
            E-Mail: {siteConfig.contact.email}
            <br />
            Telefon: {siteConfig.contact.phone}
          </p>
        </section>
        <section>
          <h2 className="font-semibold text-secondary">Haftungsausschluss</h2>
          <p>
            Trotz sorgfältiger inhaltlicher Kontrolle übernehmen wir keine Haftung für die Inhalte externer Links.
            Für den Inhalt der verlinkten Seiten sind ausschliesslich deren Betreiber verantwortlich.
          </p>
        </section>
        <p className="text-xs text-gray-400">
          Diese Seite ist eine Vorlage. Bitte vor Livegang durch den Vereinsvorstand prüfen und bei Bedarf durch
          eine rechtliche Fachperson ergänzen.
        </p>
      </div>
    </div>
  );
}
