"use client";
import { MarketingNav } from "@/components/layout/marketing-nav";
import { MarketingFooter } from "@/components/layout/marketing-footer";
import { useLocale } from "@/lib/i18n/i18n-provider";

export default function TermsPage() {
  const locale = useLocale();
  const isPl = locale === "pl";
  return (
    <div>
      <MarketingNav />
      <div className="mx-auto max-w-2xl px-4 py-16 md:px-6">
        <h1 className="text-2xl font-semibold text-ink-950">{isPl ? "Regulamin" : "Terms of Service"}</h1>
        <p className="mt-4 rounded-xl bg-amber-50 p-4 text-sm text-amber-800">
          {isPl
            ? "To jest treść zastępcza. Skonsultuj się z prawnikiem przed publikacją."
            : "This is placeholder content. Consult a lawyer before publishing."}
        </p>
      </div>
      <MarketingFooter />
    </div>
  );
}
