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

export const metadata: Metadata = {
  title: "Privacy Policy",
  robots: { index: true, follow: true },
};

export default function PrivacyPage() {
  return (
    <div className="min-h-screen bg-background">
      <div className="container mx-auto px-4 py-16 max-w-3xl">
        <h1 className="text-4xl font-bold mb-8">Privacy Policy</h1>
        <div className="prose prose-neutral max-w-none space-y-6 text-muted-foreground">
          <p>Last updated: {new Date().toLocaleDateString()}</p>
          <section>
            <h2 className="text-xl font-semibold text-foreground mb-3">Information We Collect</h2>
            <p>We collect information you provide directly, including your name, phone number, email address, and service request details when you submit our contact form or call us.</p>
          </section>
          <section>
            <h2 className="text-xl font-semibold text-foreground mb-3">How We Use Your Information</h2>
            <p>We use your information to respond to service requests, provide quotes, schedule appointments, and improve our services. We do not sell your personal information to third parties.</p>
          </section>
          <section>
            <h2 className="text-xl font-semibold text-foreground mb-3">Contact Us</h2>
            <p>If you have questions about this privacy policy, please contact us through our website contact form or by phone.</p>
          </section>
        </div>
        <Link href="/" className="inline-block mt-8 text-primary hover:underline">← Back to Home</Link>
      </div>
    </div>
  );
}
