import type { Metadata } from "next";
import Link from "next/link";

export const metadata: Metadata = {
  title: "Shipping Policy",
  description:
    "The Pet Loft shipping policy: free delivery on orders over £40, delivery times, and carrier information.",
};

export default function ShippingPolicyPage() {
  return (
    <main className="mx-auto max-w-3xl px-4 py-8 md:px-6 md:py-12">
      <Link
        href="/shop"
        className="mb-6 inline-flex items-center gap-1 text-sm text-[#3d5554] transition-colors hover:text-[#236f6b]"
      >
        ← Back to Shop
      </Link>
      <article className="prose prose-[#1a2e2d] max-w-none">
        <h1 className="font-[family-name:var(--font-fraunces)] text-2xl font-bold text-[#1a2e2d] md:text-3xl">
          Shipping Policy
        </h1>
        <p className="mt-2 text-[#3d5554]">Last updated: March 2025</p>

        <section className="mt-6 space-y-4">
          <h2 className="font-[family-name:var(--font-fraunces)] text-lg font-semibold text-[#236f6b]">
            Free Delivery on Orders Over £40
          </h2>
          <p className="text-[#1a2e2d] leading-relaxed">
            We offer free standard delivery on all orders over £40. The discount
            is automatically applied at checkout — no code required.
          </p>
        </section>

        <section className="mt-8 space-y-4">
          <h2 className="font-[family-name:var(--font-fraunces)] text-lg font-semibold text-[#236f6b]">
            Delivery Times
          </h2>
          <p className="text-[#1a2e2d] leading-relaxed">
            Standard delivery typically takes 3–5 working days for UK mainland.
            We partner with trusted carriers including DPD and Evri to get your
            pet supplies to you safely and on time.
          </p>
        </section>

        <section className="mt-8 space-y-4">
          <h2 className="font-[family-name:var(--font-fraunces)] text-lg font-semibold text-[#236f6b]">
            Terms & Conditions
          </h2>
          <p className="text-[#1a2e2d] leading-relaxed">
            Free shipping applies to UK mainland only. Orders under £40 may
            incur a delivery charge. Delivery times are estimates and may vary
            during peak periods. We reserve the right to exclude certain items
            from free delivery promotions.
          </p>
        </section>

        <p className="mt-10 text-sm text-[#3d5554]">
          Questions?{" "}
          <Link
            href="/contact"
            className="font-medium text-[#38a99f] underline transition-colors hover:text-[#236f6b]"
          >
            Contact us
          </Link>
          .
        </p>
      </article>
    </main>
  );
}
