import { Link } from 'react-router-dom'
import { PageMeta } from '@/components/common/PageMeta'

export default function PrivacyPage() {
  return (
    <>
      <PageMeta title="Privacy Policy" description="ResolutionFlow Privacy Policy" />
      <div className="min-h-screen bg-[#0c0d10] text-[#e2e5eb]">
        <div className="mx-auto max-w-3xl px-6 py-16">
          <Link to="/landing" className="text-sm text-[#848b9b] hover:text-[#e2e5eb] mb-8 inline-block">&larr; Back to home</Link>
          <h1 className="text-3xl font-bold font-heading mb-8">Privacy Policy</h1>
          <p className="text-[#848b9b] mb-6">Last updated: March 21, 2026</p>

          <div className="space-y-6 text-[#848b9b] leading-relaxed">
            <section>
              <h2 className="text-xl font-semibold text-[#e2e5eb] mb-3">1. Information We Collect</h2>
              <p>When you use ResolutionFlow, we collect information you provide directly: your name, email address, and account credentials. We also collect usage data including session logs, flow configurations, and troubleshooting documentation generated through the platform.</p>
            </section>

            <section>
              <h2 className="text-xl font-semibold text-[#e2e5eb] mb-3">2. How We Use Your Information</h2>
              <p>We use your information to provide and improve ResolutionFlow, including: operating your account, generating documentation from troubleshooting sessions, providing AI-powered guidance through FlowPilot, and communicating with you about the service.</p>
            </section>

            <section>
              <h2 className="text-xl font-semibold text-[#e2e5eb] mb-3">3. Data Storage & Security</h2>
              <p>Your data is stored securely using industry-standard encryption. PSA credentials (ConnectWise, Atera, Syncro) are encrypted at rest. We do not sell your data to third parties.</p>
            </section>

            <section>
              <h2 className="text-xl font-semibold text-[#e2e5eb] mb-3">4. AI & Data Processing</h2>
              <p>FlowPilot uses AI models to provide troubleshooting guidance. Session data sent to AI providers is used only for generating responses within your session and is not used to train AI models.</p>
            </section>

            <section>
              <h2 className="text-xl font-semibold text-[#e2e5eb] mb-3">5. Contact</h2>
              <p>Questions about this policy? Email us at <a href="mailto:hello@resolutionflow.com" className="text-[#22d3ee] hover:underline">hello@resolutionflow.com</a>.</p>
            </section>
          </div>
        </div>
      </div>
    </>
  )
}
