
import { Metadata } from 'next';
import Link from 'next/link';
import Image from 'next/image';
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 TermsCondition({ 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>Terms And Conditions</h1>
                            <p>Understand the rules that govern your use of Smile24.com’s services and platform.</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/tc-img.svg" alt="tc-img" />
                        </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>Welcome to Smile24.com — Your Freelance Marketplace for Smarter Work and Better Earnings.</h2>
                            <p>These Terms and Conditions ("Terms") govern your access to and use of the Smile24.com platform (referred to as "Smile24", "we", "our", or "us"). By accessing or using our services, you agree to be bound by these Terms.</p>
                            <h2>1. Eligibility</h2>
                            <p className="mb-1">To use Smile24.com, you must be:</p>
                            <ul>
                                <li>At least 18 years of age.</li>
                                <li>Capable of entering into a legally binding agreement.</li>
                                <li>Not previously banned from using our services.</li>
                            </ul>
                            <h2>2. User Accounts</h2>
                            <ul>
                                <li>At least 18 years of age.</li>
                                <li>Capable of entering into a legally binding agreement.</li>
                                <li>Not previously banned from using our services.</li>
                            </ul>
                            <h2>3. Using Smile24</h2>
                            <p className="mb-1">You agree to use the platform only for lawful purposes. You must not:</p>
                            <ul>
                                <li>Post false or misleading project listings.</li>
                                <li>Use the platform for any illegal, harmful, or fraudulent activities.</li>
                                <li>Interfere with the operation or security of the site.</li>
                            </ul>
                            <h2>4. Membership and Visibility</h2>
                            <ul>
                                <li>Smile24 offers optional category-based memberships that unlock premium features such as top project placement and priority visibility.</li>
                                <li>Membership fees, if any, are non-refundable unless otherwise stated.</li>
                            </ul>
                            <h2>5. Projects and Payments</h2>
                            <ul>
                                <li>Freelancers and Clients enter into contracts independently. Smile24 is not a party to these agreements.</li>
                                <li>Payment terms, timelines, and milestones must be agreed upon between users before work begins.</li>
                                <li>Any disputes arising from projects should first be addressed directly between the concerned users.</li>
                            </ul>
                            <h2>6. Content and Intellectual Property</h2>
                            <ul>
                                <li>You retain ownership of the content you submit but grant Smile24 a non-exclusive license to display it on our platform.</li>
                                <li>You must not infringe on any third-party copyrights or trademarks.</li>
                            </ul>
                            <h2>7. Fees and Taxes</h2>
                            <ul>
                                <li>Smile24 may charge service or transaction fees, which will be disclosed clearly.</li>
                                <li>Users are solely responsible for complying with their local tax regulations.</li>
                            </ul>
                            <h2>8. Account Termination</h2>
                            <p className="mb-1">We reserve the right to suspend or terminate your account if:</p>
                            <ul>
                                <li>You breach any part of these Terms.</li>
                                <li>You engage in fraudulent or abusive behavior.</li>
                                <li>We are required to do so by law.</li>
                            </ul>
                            <h2>9. Limitation of Liability</h2>
                            <p className="mb-1">Smile24 shall not be liable for:</p>
                            <ul>
                                <li>Any indirect or consequential damages.</li>
                                <li>Any disputes between users.</li>
                                <li>Any loss resulting from unauthorized access to your account.</li>
                            </ul>
                            <h2>10. Changes to These Terms</h2>
                            <p>We may update these Terms from time to time. Significant changes will be notified via email or on the platform. Continued use of the platform after changes constitutes acceptance of the updated Terms.</p>
                            <h2>11. Governing Law</h2>
                            <p>These Terms are governed by and construed in accordance with the laws of India. Disputes arising out of or relating to these Terms shall be subject to the exclusive jurisdiction of the courts located in [your preferred jurisdiction, e.g., Jaipur, Rajasthan].</p>
                            <h2>12. Contact</h2>
                            <p>For any queries related to these Terms, please contact us at:<br />
                            <a href="mailto:support@smile24.com">support@smile24.com</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        {/* <!-- end  --> */}

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