
import React, { useEffect } from 'react'
import { Helmet } from 'react-helmet-async'

export default function PrivacyPolicy() {
  useEffect(() => {
    window.scrollTo(0, 0)
  }, [])

  return (
    <section className="section">
      <Helmet><title>Privacy Policy | Annaville SDA Church</title></Helmet>
      <div className="container max-w-4xl">
        <h1 className="font-heading text-display30 mb-8">Privacy Policy</h1>

        <div className="prose prose-lg max-w-none">
          <p className="text-muted mb-6">
            <em>Last updated: {new Date().toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' })}</em>
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Introduction</h2>
          <p className="text-body mb-4">
            Annaville Seventh-day Adventist Church ("we," "our," or "us") is committed to protecting your privacy.
            This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit
            our website or interact with our services.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Information We Collect</h2>
          <h3 className="font-heading text-h3 mt-6 mb-3">Personal Information</h3>
          <p className="text-body mb-4">
            We may collect personal information that you voluntarily provide to us when you:
          </p>
          <ul className="list-disc pl-6 mb-4 space-y-2">
            <li>Fill out contact forms</li>
            <li>Register for events or programs</li>
            <li>Subscribe to our newsletter</li>
            <li>Make online donations</li>
            <li>Submit prayer requests</li>
          </ul>
          <p className="text-body mb-4">
            This information may include your name, email address, phone number, mailing address, and any other
            information you choose to provide.
          </p>

          <h3 className="font-heading text-h3 mt-6 mb-3">Automatically Collected Information</h3>
          <p className="text-body mb-4">
            When you visit our website, we may automatically collect certain information about your device, including
            information about your web browser, IP address, time zone, and some of the cookies that are installed on
            your device. This information is used to improve our website and user experience.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">How We Use Your Information</h2>
          <p className="text-body mb-4">
            We use the information we collect to:
          </p>
          <ul className="list-disc pl-6 mb-4 space-y-2">
            <li>Respond to your inquiries and provide customer service</li>
            <li>Send you information about church events, programs, and activities</li>
            <li>Process your donations and send you receipts</li>
            <li>Improve our website and services</li>
            <li>Communicate with you about prayer requests and spiritual support</li>
            <li>Comply with legal obligations</li>
          </ul>

          <h2 className="font-heading text-h2 mt-8 mb-4">Information Sharing</h2>
          <p className="text-body mb-4">
            We do not sell, trade, or rent your personal information to third parties. We may share your information only in the following circumstances:
          </p>
          <ul className="list-disc pl-6 mb-4 space-y-2">
            <li>With your consent</li>
            <li>With service providers who assist us in operating our website or conducting our church activities</li>
            <li>To comply with legal obligations or respond to lawful requests</li>
            <li>To protect the rights, property, or safety of our church, our members, or others</li>
          </ul>

          <h2 className="font-heading text-h2 mt-8 mb-4">Data Security</h2>
          <p className="text-body mb-4">
            We implement appropriate technical and organizational security measures to protect your personal information.
            However, please note that no method of transmission over the Internet or electronic storage is 100% secure.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Your Rights</h2>
          <p className="text-body mb-4">
            You have the right to:
          </p>
          <ul className="list-disc pl-6 mb-4 space-y-2">
            <li>Access the personal information we hold about you</li>
            <li>Request correction of inaccurate information</li>
            <li>Request deletion of your personal information</li>
            <li>Opt-out of receiving communications from us</li>
            <li>Withdraw consent where we rely on consent to process your information</li>
          </ul>

          <h2 className="font-heading text-h2 mt-8 mb-4">Children's Privacy</h2>
          <p className="text-body mb-4">
            Our website is not directed to children under the age of 13. We do not knowingly collect personal
            information from children under 13. If you are a parent or guardian and believe we have collected
            information from your child, please contact us.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Cookies</h2>
          <p className="text-body mb-4">
            We use cookies and similar tracking technologies to track activity on our website and hold certain information.
            You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Changes to This Policy</h2>
          <p className="text-body mb-4">
            We may update this Privacy Policy from time to time. We will notify you of any changes by posting the new
            Privacy Policy on this page and updating the "Last updated" date.
          </p>

          <h2 className="font-heading text-h2 mt-8 mb-4">Contact Us</h2>
          <p className="text-body mb-4">
            If you have questions about this Privacy Policy or our privacy practices, please contact us:
          </p>
          <div className="bg-sand p-6 rounded-lg mb-8">
            <p className="mb-2"><strong>Annaville Seventh-day Adventist Church</strong></p>
            <p className="mb-2">2710 Violet Rd, Corpus Christi, TX 78410</p>
            <p className="mb-2">Phone: <a href="tel:+13612415501" className="text-primary hover:underline">(361) 241-5501</a></p>
            <p>Email: <a href="mailto:info@annavillesda.org" className="text-primary hover:underline">info@annavillesda.org</a></p>
          </div>
        </div>
      </div>
    </section>
  )
}
