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

export const metadata: Metadata = {
  title: "Privacy",
  description: "How Image Converter handles uploads and data."
};

export default function PrivacyPage() {
  return (
    <main className="relative z-10 min-h-screen px-4 py-10 sm:px-6">
      <div className="mx-auto w-full max-w-3xl">
        <Link
          className="text-sm font-semibold text-indigo-700 underline decoration-indigo-200 underline-offset-4 hover:text-indigo-900 hover:decoration-indigo-400"
          href="/"
        >
          ← Back to converter
        </Link>

        <div className="glass-panel mt-6 rounded-3xl p-6 sm:p-8">
          <h1 className="font-display text-3xl font-extrabold tracking-tight text-slate-900">Privacy Policy</h1>
          <p className="mt-2 text-sm text-slate-600">Last updated: {new Date().toLocaleDateString()}</p>

          <div className="prose prose-slate mt-6 max-w-none">
          <h2>Summary</h2>
          <ul>
            <li>Uploads are processed in-memory to generate your converted download.</li>
            <li>This app does not intentionally save uploaded files to disk.</li>
            <li>Basic operational logs may exist (e.g., errors) depending on hosting configuration.</li>
          </ul>

          <h2>What data we process</h2>
          <p>
            When you upload an image, the server receives the file content to perform the conversion you requested.
            The output is returned to your browser as a download. The conversion settings you choose (format, quality,
            width/height) are sent along with the request.
          </p>

          <h2>Storage and retention</h2>
          <p>
            By design, this site converts files in-memory and immediately returns the result. We do not build features
            that require persistent storage of user uploads. Hosting providers and reverse proxies may temporarily buffer
            requests; that behavior is outside of the app’s control.
          </p>

          <h2>Cookies</h2>
          <p>
            This site does not require cookies to function. If analytics or advertising is added in the future, this
            policy should be updated to reflect those changes.
          </p>

          <h2>Contact</h2>
          <p>
            If you have questions about privacy, contact the site owner. (Replace this section with a real contact method
            before deploying publicly.)
          </p>
          </div>
        </div>
      </div>
    </main>
  );
}

