<?php include __DIR__ . '/../includes/header.php'; ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Policies & Terms — Trader Safety</title>

    <!-- Google Fonts & Icons -->
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">

    <style>
        :root {
            --navy: #0F1628;
            --gold: #B8890A;
            --gold-light: #F5EDD3;
            --gold-ring: #D4A82A;
            --ivory: #FAFAF7;
            --white: #FFFFFF;
            --muted: #7D8799;
            --border: #EDE9DF;
            --sans: 'Plus Jakarta Sans', sans-serif;
            --serif: 'Playfair Display', serif;
            --shadow: 0 15px 45px rgba(15, 22, 40, 0.08);
            --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--sans);
            background-color: var(--ivory);
            color: var(--navy);
            line-height: 1.8;
        }

        /* --- PREMIUM HEADER --- */
        .policy-hero {
            background: var(--navy);
            padding: 100px 20px 160px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .policy-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('https://resources1.interface003.com/web20/img/about/bottom2.png');
            opacity: 0.1;
            background-size: cover;
        }

        .policy-hero h1 {
            font-family: var(--serif);
            font-size: clamp(32px, 6vw, 52px);
            color: var(--white);
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }

        .policy-hero h1 span {
            color: var(--gold);
            font-style: italic;
        }

        .policy-hero p {
            color: rgba(255, 255, 255, 0.6);
            max-width: 600px;
            margin: 0 auto;
            font-size: 16px;
            position: relative;
            z-index: 2;
        }

        /* --- TAB NAVIGATION --- */
        .policy-container {
            max-width: 1100px;
            margin: -80px auto 80px;
            padding: 0 20px;
            position: relative;
            z-index: 5;
        }

        .tab-wrapper {
            background: var(--white);
            border-radius: 24px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            overflow: hidden;
        }

        .tab-header {
            display: flex;
            background: var(--white);
            border-bottom: 1px solid var(--border);
            padding: 10px;
            gap: 10px;
        }

        .tab {
            flex: 1;
            padding: 18px 20px;
            cursor: pointer;
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--muted);
            text-align: center;
            border-radius: 14px;
            transition: var(--transition);
        }

        .tab:hover {
            color: var(--gold);
            background: var(--ivory);
        }

        .tab.active {
            background: var(--navy);
            color: var(--gold);
            box-shadow: 0 10px 20px rgba(15, 22, 40, 0.15);
        }

        /* --- CONTENT STYLING --- */
        .tab-content {
            display: none;
            padding: 60px;
            animation: slideUp 0.6s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tab-content.active {
            display: block;
        }

        .content-header {
            margin-bottom: 45px;
            border-left: 5px solid var(--gold);
            padding-left: 25px;
        }

        .content-header h2 {
            font-family: var(--serif);
            font-size: 32px;
            margin-bottom: 8px;
        }

        .last-updated {
            font-size: 12px;
            font-weight: 800;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .content-body h3 {
            font-size: 20px;
            font-weight: 700;
            margin: 40px 0 15px;
            color: var(--navy);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .content-body h3::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        .content-body p {
            color: #4E5969;
            margin-bottom: 25px;
            font-size: 16px;
        }

        .content-body ul {
            list-style: none;
            margin-bottom: 30px;
        }

        .content-body ul li {
            position: relative;
            padding-left: 30px;
            margin-bottom: 15px;
            color: #4E5969;
        }

        .content-body ul li::before {
            content: '\f058';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--gold);
            font-size: 18px;
        }

        /* --- ANNOUNCEMENT CARDS --- */
        .news-card {
            background: var(--ivory);
            border: 1px solid var(--border);
            padding: 25px;
            border-radius: 16px;
            margin-bottom: 20px;
            transition: var(--transition);
        }

        .news-card:hover {
            border-color: var(--gold);
            transform: translateX(10px);
        }

        .news-date {
            color: var(--gold);
            font-weight: 800;
            font-size: 12px;
            margin-bottom: 5px;
            display: block;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 768px) {
            .tab-header {
                flex-direction: column;
                padding: 15px;
            }

            .tab-content {
                padding: 30px 20px;
            }

            .policy-hero {
                padding-bottom: 120px;
            }

            .policy-container {
                margin-top: -60px;
            }
        }
    </style>
</head>

<body>


    <section class="policy-hero">
        <h1>Trader Safety <span>Policies</span></h1>
        <p>Transparency and security are the foundations of our platform. Read how we protect our community of traders.</p>
    </section>

    <!-- ════════════════════════════════════════════════════════════
     CONTENT SECTION START
     ════════════════════════════════════════════════════════════ -->
    <div class="policy-container">
        <div class="tab-wrapper">
            <div class="tab-header">
                <div class="tab active" data-tab="terms">Terms of Use</div>
                <div class="tab" data-tab="privacy">Privacy Policy</div>
                <div class="tab" data-tab="announcement">Announcements</div>
            </div>

            <!-- --- SECTION 1: TERMS OF USE --- -->
            <div id="terms-content" class="tab-content active">
                <div class="content-header">
                    <div class="last-updated">Last Updated: January 2026</div>
                    <h2>Terms of Use</h2>
                </div>
                <div class="content-body">
                    <h3>1. Acceptance of Terms</h3>
                    <p>By accessing or using Trader Safety's services, you agree to be bound by these Terms of Use. Our mission is to provide an authoritative inquiry platform for the forex industry. If you disagree with any part of these terms, you may not access our services.</p>

                    <h3>2. Description of Service</h3>
                    <p>Trader Safety provides institutional-grade data and inquiry tools focusing on:</p>
                    <ul>
                        <li><strong>Regulatory Situation:</strong> Real-time tracking of global financial regulators.</li>
                        <li><strong>License Qualification:</strong> Verification of broker certifications.</li>
                        <li><strong>Risk Information:</strong> Exposure of fraudulent activities and market risks.</li>
                        <li><strong>Credit Evaluation:</strong> Multi-dimensional credit scoring for brokers.</li>
                        <li><strong>Site Survey:</strong> On-site physical inspections of broker offices worldwide.</li>
                    </ul>

                    <h3>3. User Responsibilities</h3>
                    <p>As a user of this platform, you agree to:</p>
                    <ul>
                        <li>Be at least 18 years of age.</li>
                        <li>Provide accurate information when submitting inquiries or complaints.</li>
                        <li>Maintain the confidentiality of your account credentials.</li>
                        <li>Not use the service for any illegal or unauthorized commercial purposes.</li>
                    </ul>

                    <h3>4. Intellectual Property</h3>
                    <p>The Service and its original content, features, and functionality are and will remain the exclusive property of Trader Safety. Our trademarks and proprietary data models may not be used without prior written consent.</p>

                    <h3>5. Limitation of Liability</h3>
                    <p>Trader Safety acts as a third-party information provider. While we strive for 100% accuracy, we are not liable for any financial losses incurred through trading activities. Always conduct your own due diligence.</p>
                </div>
            </div>

            <!-- --- SECTION 2: PRIVACY POLICY --- -->
            <div id="privacy-content" class="tab-content">
                <div class="content-header">
                    <div class="last-updated">Updated: May 2026</div>
                    <h2>Privacy Policy</h2>
                </div>
                <div class="content-body">
                    <h3>1. Information We Collect</h3>
                    <p>We collect information to provide better services to our users:</p>
                    <ul>
                        <li><strong>Personal Data:</strong> Name, email address, and contact details provided during registration or inquiries.</li>
                        <li><strong>Usage Data:</strong> Information on how you interact with our verification tools.</li>
                        <li><strong>Device Data:</strong> IP address, browser type, and operating system for security monitoring.</li>
                        <li><strong>Cookies:</strong> We use essential cookies to maintain your session and preferences.</li>
                    </ul>

                    <h3>2. How We Use Your Data</h3>
                    <p>Your data is used specifically for:</p>
                    <ul>
                        <li>Providing broker verification results.</li>
                        <li>Notifying you about changes to broker regulatory statuses.</li>
                        <li>Processing loss recovery complaints.</li>
                        <li>Improving our AI-driven risk scoring algorithms.</li>
                    </ul>

                    <h3>3. Data Security & Encryption</h3>
                    <p>We implement military-grade AES-256 encryption. Your personal identity is never sold to third-party brokers or marketing agencies. We follow strict international data protection standards (GDPR/CCPA compliant).</p>

                    <h3>4. Your Rights</h3>
                    <p>You have the right to access, rectify, or request the deletion of your personal data at any time through your account dashboard or by contacting our support team.</p>
                </div>
            </div>

            <!-- --- SECTION 3: ANNOUNCEMENTS --- -->
            <div id="announcement-content" class="tab-content">
                <div class="content-header">
                    <h2>Official Announcements</h2>
                    <p>Latest updates from the Trader Safety Global Security Team.</p>
                </div>
                <div class="content-body">
                    <div class="news-card">
                        <span class="news-date">May 05, 2026</span>
                        <strong>New Feature: Real-time VPS Monitoring</strong>
                        <p>We have integrated real-time latency monitoring for all verified VPS providers in our database. Users can now see exact execution speeds before choosing a provider.</p>
                    </div>

                    <div class="news-card">
                        <span class="news-date">April 12, 2026</span>
                        <strong>Alert: Rise in Shared License Scams</strong>
                        <p>Our site survey team has identified an increase in brokers using cloned or shared licenses in Southeast Asia. Please check the "License Verification" tab for the updated blacklist.</p>
                    </div>

                    <div class="news-card">
                        <span class="news-date">March 28, 2026</span>
                        <strong>Trader Safety App Version 4.0</strong>
                        <p>The new update is now live on iOS and Android, featuring a dark mode interface and AI-powered voice search for broker inquiries.</p>
                    </div>

                    <h3>Scheduled Maintenance</h3>
                    <p>To ensure system stability, minor updates are performed every <strong>Tuesday between 02:00 - 03:00 UTC</strong>. The platform may experience brief intermittent connectivity during this window.</p>
                </div>
            </div>
        </div>
    </div>
    <!-- ════════════════════════════════════════════════════════════
     CONTENT SECTION END
     ════════════════════════════════════════════════════════════ -->
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const tabs = document.querySelectorAll('.tab');
            const contents = document.querySelectorAll('.tab-content');

            // Function: Tab switch karne ke liye logic
            function switchTab(tabId) {
                const targetTab = document.querySelector(`.tab[data-tab="${tabId}"]`);
                const targetContent = document.getElementById(`${tabId}-content`);

                if (targetTab && targetContent) {
                    // Pehle sab active classes hatao
                    tabs.forEach(t => t.classList.remove('active'));
                    contents.forEach(c => c.classList.remove('active'));

                    // Target elements ko active karo
                    targetTab.classList.add('active');
                    targetContent.classList.add('active');
                }
            }

            // 1. Click Listener: Jab user tab par manually click kare
            tabs.forEach(tab => {
                tab.addEventListener('click', () => {
                    const tabId = tab.getAttribute('data-tab');
                    switchTab(tabId);

                    // URL update karo bina refresh ke
                    history.pushState(null, null, `?tab=${tabId}`);

                    // Smooth scroll to content top
                    const headerOffset = document.querySelector('.tab-header').offsetTop - 50;
                    window.scrollTo({
                        top: headerOffset,
                        behavior: 'smooth'
                    });
                });
            });

            // 2. Initial Load: Check if URL has ?tab=
            const urlParams = new URLSearchParams(window.location.search);
            const activeTab = urlParams.get('tab');

            if (activeTab) {
                switchTab(activeTab);
                // Thoda delay taaki layout render ho jaye phir scroll kare
                setTimeout(() => {
                    const headerOffset = document.querySelector('.tab-header').offsetTop - 50;
                    window.scrollTo({
                        top: headerOffset,
                        behavior: 'smooth'
                    });
                }, 100);
            }

            // 3. Browser Back/Forward buttons support
            window.addEventListener('popstate', () => {
                const params = new URLSearchParams(window.location.search);
                switchTab(params.get('tab') || 'terms');
            });
        });
    </script>

<?php include __DIR__ . '/../includes/footer.php'; ?>
