<?php
$page_title = "Terms of Service";
require_once '../config/config.php';
require_once '../includes/user_auth.php';
require_once '../includes/functions.php';

if (!isset($auth)) {
    $auth = new Auth();
}

require_once '../includes/header_user.php';
?>

<div class="container mx-auto px-4 py-8">
    <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-lg p-8">
        <h1 class="text-3xl font-bold text-gray-800 mb-6">Terms of Service</h1>
        <p class="text-gray-600 mb-4">Last updated: <?php echo date('F d, Y'); ?></p>

        <div class="prose max-w-none text-gray-700 space-y-6">
            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">1. Agreement to Terms</h2>
                <p>By accessing or using the <?php echo SITE_NAME; ?> website and services, you agree to be bound by these Terms of Service and all applicable laws and regulations. If you do not agree with any of these terms, you are prohibited from using or accessing this site.</p>
            </section>

            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">2. Investment Risks</h2>
                <p>Investment in financial markets involves a significant degree of risk and may not be suitable for all investors. You should carefully consider your investment objectives, level of experience, and risk appetite before deciding to invest. There is a possibility that you could sustain a loss of some or all of your initial investment.</p>
            </section>

            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">3. User Account</h2>
                <p>To access certain features of the platform, you must register for an account. You agree to provide accurate, current, and complete information during the registration process and to update such information to keep it accurate, current, and complete. You are responsible for safeguarding your password and for all activities that occur under your account.</p>
            </section>

            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">4. Deposits and Withdrawals</h2>
                <ul class="list-disc pl-5 mt-2 space-y-1">
                    <li>Deposits must be made from a source account registered in your name.</li>
                    <li>Withdrawals will be processed according to our withdrawal policy and timelines.</li>
                    <li>We reserve the right to request additional identification documents (KYC) before processing any withdrawal.</li>
                </ul>
            </section>

            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">5. Prohibited Activities</h2>
                <p>You agree not to engage in any of the following activities:</p>
                <ul class="list-disc pl-5 mt-2 space-y-1">
                    <li>Using the service for any illegal purpose or in violation of any local, state, national, or international law.</li>
                    <li>Attempting to interfere with, compromise the system integrity or security, or decipher any transmissions to or from the servers running the service.</li>
                    <li>Creating multiple accounts to manipulate the referral system or other platform features.</li>
                </ul>
            </section>

            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">6. Termination</h2>
                <p>We may terminate or suspend your account and bar access to the service immediately, without prior notice or liability, under our sole discretion, for any reason whatsoever and without limitation, including but not limited to a breach of the Terms.</p>
            </section>

            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">7. Limitation of Liability</h2>
                <p>In no event shall <?php echo SITE_NAME; ?>, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your access to or use of or inability to access or use the service.</p>
            </section>

            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">8. Changes to Terms</h2>
                <p>We reserve the right, at our sole discretion, to modify or replace these Terms at any time. What constitutes a material change will be determined at our sole discretion. By continuing to access or use our service after those revisions become effective, you agree to be bound by the revised terms.</p>
            </section>

            <section>
                <h2 class="text-xl font-semibold text-gray-800 mb-3">9. Contact Us</h2>
                <p>If you have any questions about these Terms, please contact us at <a href="mailto:<?php echo SITE_EMAIL; ?>" class="text-blue-600 hover:underline"><?php echo SITE_EMAIL; ?></a>.</p>
            </section>
        </div>
    </div>
</div>

<?php require_once '../includes/footer.php'; ?>