
import { Metadata } from 'next';
import Footer from '@/components/Footer';

interface HowItWorksPageProps {
  params: Promise<{
    locale: string;
  }>;
}

export async function generateMetadata({ params }: HowItWorksPageProps): Promise<Metadata> {
  const { locale } = await params;
  return {
    title: 'How It Works - Smile24',
    description: 'Learn how Smile24 works for both clients and freelancers. Get the best talent in just a few simple steps.',
    keywords: 'how it works, freelancer platform, hiring process, project posting',
  };
}

export default async function PrivacyPolicy({ params }: HowItWorksPageProps) {
  const { locale } = await params;

  return (
      <>
        {/* Custom CSS for this page */}
        <link rel="stylesheet" href="/assets/css/style.css" />

        {/* hero section  */}
        <section className="inner-hero-wrapper">
            <div className="container">
                <div className="row">
                    <div className="col-12 col-md-7 col-lg-8 align-self-center">
                        <div className="hero-content">
                            <h1> Privacy Policy </h1>
                            <p>Learn how Smile24.com collects, uses, and protects your personal information.</p>
                        </div>
                    </div>
                    <div className="col-12 col-md-5 col-lg-4 align-self-end">
                        <div className="inner-hero-img text-center pt-2">
                            <img src="../assets/image/privacy-policy.svg" alt="privacy-policy" />
                        </div>
                    </div>
                </div>
            </div>
        </section>
        {/* end  */}

        {/* privacy  */}
        <section className="privacy-wrapper py-60">
            <div className="container">
                <div className="row">
                    <div className="col-12">
                        <div className="privacy-content">
                            <h2>Our Privacy Obligations</h2>
                            <p>Smile24.com ("Smile24") is committed to protecting the privacy and security of your personal information. This policy outlines how we handle your data in accordance with applicable privacy laws, including the General Data Protection Regulation (GDPR) for users in the European Union. This Privacy Policy explains what personal data we collect, how we use it, and your rights regarding your information. We may review and update this policy from time to time.
                            </p>
                            <h2>Types of Personal Information We Collect</h2>
                            <p className="mb-1">We collect personal information to provide services, support, and enhance user experience on Smile24.com. <br />This may include:</p>
                            <ul>
                                <li><strong> Account Details: </strong>Name, email, username, password, profile photo.</li>
                                <li><strong> Contact Information:</strong> Email address, phone number.</li>
                                <li><strong> Location Information:</strong> Address, time zone.</li>
                                <li><strong> Identity Verification:</strong> Government-issued IDs, utility bills.</li>
                                <li><strong>Financial Information:</strong> Payment method details (e.g., UPI, bank info), tax information.</li>
                                <li><strong> User Content:</strong> Project details, proposals, messages, reviews, profile bios.</li>
                            </ul>
                            <p>Some data provided voluntarily via forums or social media may fall outside this policy’s scope.</p>
                            <h2>How We Collect Information</h2>
                            <ul>
                                <li><strong>Directly from You:</strong> Via website forms, signups, profile setup, chat, or support.</li>
                                <li><strong>Third-Party Integrations:</strong> If you link your Smile24 account with Facebook, Google, or LinkedIn.</li>
                                <li><strong>Automatically:</strong> Through cookies, logs, device data, and session behavior.</li>
                            </ul>
                            <h2>Information Collected Automatically May Include:</h2>
                            <ul>
                                <li>IP address</li>
                                <li>Device type and browser</li>
                                <li>Session duration and activity</li>
                                <li>Clicks and pages visited</li>
                                <li>GPS (if permitted)</li>
                            </ul>
                            <h2>Use of Your Information We may use your personal data to:</h2>
                            <ul>
                                <li>Provide and personalize our services</li>
                                <li>Promote your profile within your selected category (if you buy membership)</li>
                                <li>Process payments</li>
                                <li>Improve our platform through analytics</li>
                                <li>Enforce our terms and ensure platform safety</li>
                                <li>Communicate with you about offers, account activity, and support</li>
                                <li>Comply with legal obligations</li>
                            </ul>
                            <h2>Disclosure of Information We may share data with:</h2>
                            <ul>
                                <li><strong>Trusted Third Parties:</strong> Hosting providers, payment processors, analytics services, etc.</li>
                                <li><strong>Government or Legal Authorities:</strong> Where required by law.</li>
                                <li><strong>Other Users:</strong> Limited information, as required by project activity and platform functionality.</li>
                            </ul>
                            <h2>Your Rights You have the right to:</h2>
                            <ul>
                                <li>Access or update your personal information</li>
                                <li>Request deletion (subject to legal exceptions)</li>
                                <li>Restrict or object to processing in some cases</li>
                                <li>Download your data</li>
                            </ul>
                            <p>For assistance, contact: <a href="mailto:privacy@smile24.com">privacy@smile24.com</a></p>

                            <p className="mb-0"><strong>Data Retention and Security </strong>We retain personal information as long as necessary for business and legal purposes. We implement strict measures to secure your data against unauthorized access.</p>
                            <p className="mb-0"><strong>Cookies and Tracking</strong>  We use cookies to enhance your experience and track usage patterns. You can manage cookies through your browser settings.</p>
                            <p className="mb-0"><strong>External Links </strong> Smile24.com may contain links to other websites. We are not responsible for the privacy practices of those sites.</p>
                            <p><strong>Contact Us</strong> For questions or concerns about this policy, email us at <a href="mailto:contact@smile24.com">contact@smile24.com</a></p>

                            <p>Last updated: June 18, 2025</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        {/* <!-- end  --> */}

        {/* Footer */}
        <Footer locale={locale} />
      </>
  );
}
