<?php
// privacy.php - Privacy Policy Page
// File location: /bidwheels.net/privacy.php

require_once 'includes/functions.php';
require_once 'includes/header.php';
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Read <?php echo SITE_NAME; ?> privacy policy to understand how we collect, use, and protect your personal information.">
    <title>Privacy Policy - <?php echo SITE_NAME; ?></title>
    
    <style>
        .policy-page {
            background: linear-gradient(135deg, #EFEBE0 0%, #e5e0d4 100%);
            min-height: 100vh;
            padding: 60px 0;
        }
        
        .policy-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .policy-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .policy-header h1 {
            font-size: 48px;
            font-weight: 800;
            background: linear-gradient(135deg, #1a1a1a 0%, #FF8C3E 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 15px;
        }
        
        .policy-header p {
            color: #555;
            font-size: 18px;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .last-updated {
            text-align: center;
            color: #888;
            font-size: 13px;
            margin-top: 10px;
        }
        
        .policy-grid {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 40px;
        }
        
        .policy-nav {
            position: sticky;
            top: 100px;
            height: fit-content;
            background: white;
            border-radius: 24px;
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        }
        
        .policy-nav h3 {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #FF8C3E;
        }
        
        .nav-list {
            list-style: none;
            padding: 0;
        }
        
        .nav-list li {
            margin-bottom: 12px;
        }
        
        .nav-list a {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #555;
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 12px;
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .nav-list a i {
            width: 20px;
            color: #FF8C3E;
        }
        
        .nav-list a:hover {
            background: #f8f8f8;
            color: #FF8C3E;
            transform: translateX(5px);
        }
        
        .policy-content {
            background: white;
            border-radius: 32px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }
        
        .policy-section {
            margin-bottom: 40px;
            scroll-margin-top: 100px;
        }
        
        .policy-section:last-child {
            margin-bottom: 0;
        }
        
        .policy-section h2 {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #FF8C3E;
            display: inline-block;
        }
        
        .policy-section h3 {
            font-size: 20px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 25px 0 15px;
        }
        
        .policy-section p {
            color: #555;
            line-height: 1.7;
            margin-bottom: 15px;
            font-size: 15px;
        }
        
        .policy-section ul, 
        .policy-section ol {
            margin: 15px 0 15px 25px;
            color: #555;
            line-height: 1.7;
        }
        
        .policy-section li {
            margin-bottom: 8px;
        }
        
        .highlight-box {
            background: #fef5ee;
            padding: 20px;
            border-left: 4px solid #FF8C3E;
            border-radius: 16px;
            margin: 20px 0;
        }
        
        .info-box {
            background: #f0f7ff;
            padding: 15px 20px;
            border-radius: 16px;
            margin: 15px 0;
        }
        
        .info-box i {
            color: #FF8C3E;
            margin-right: 8px;
        }
        
        hr {
            margin: 30px 0;
            border-color: #f0f0f0;
        }
        
        .contact-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            border-radius: 20px;
            padding: 25px;
            margin-top: 30px;
            color: white;
            text-align: center;
        }
        
        .contact-card h4 {
            font-size: 18px;
            margin-bottom: 15px;
        }
        
        .contact-card p {
            color: #aaa;
            margin-bottom: 15px;
        }
        
        .contact-card a {
            color: #FF8C3E;
            text-decoration: none;
        }
        
        @media (max-width: 992px) {
            .policy-grid {
                grid-template-columns: 1fr;
            }
            
            .policy-nav {
                position: static;
                margin-bottom: 30px;
            }
            
            .nav-list {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .nav-list li {
                margin-bottom: 0;
            }
            
            .nav-list a {
                padding: 6px 14px;
                background: #f8f8f8;
            }
        }
        
        @media (max-width: 768px) {
            .policy-page {
                padding: 40px 0;
            }
            
            .policy-container {
                padding: 0 16px;
            }
            
            .policy-header h1 {
                font-size: 32px;
            }
            
            .policy-content {
                padding: 25px;
            }
            
            .policy-section h2 {
                font-size: 24px;
            }
        }
    </style>
</head>
<body>

<div class="policy-page">
    <div class="policy-container">
        <div class="policy-header">
            <h1>Privacy Policy</h1>
            <p>How we collect, use, and protect your personal information</p>
            <div class="last-updated">Last Updated: June 11, 2025</div>
        </div>
        
        <div class="policy-grid">
            <aside class="policy-nav">
                <h3><i class="fas fa-file-alt"></i> On This Page</h3>
                <ul class="nav-list">
                    <li><a href="#information-collect"><i class="fas fa-database"></i> Information We Collect</a></li>
                    <li><a href="#information-use"><i class="fas fa-chart-line"></i> How We Use Information</a></li>
                    <li><a href="#information-share"><i class="fas fa-share-alt"></i> Information Sharing</a></li>
                    <li><a href="#cookies"><i class="fas fa-cookie-bite"></i> Cookies & Tracking</a></li>
                    <li><a href="#data-security"><i class="fas fa-shield-alt"></i> Data Security</a></li>
                    <li><a href="#your-rights"><i class="fas fa-user-check"></i> Your Rights</a></li>
                    <li><a href="#children"><i class="fas fa-child"></i> Children's Privacy</a></li>
                    <li><a href="#changes"><i class="fas fa-edit"></i> Changes to Policy</a></li>
                    <li><a href="#contact"><i class="fas fa-envelope"></i> Contact Us</a></li>
                </ul>
            </aside>
            
            <div class="policy-content">
                <!-- Introduction -->
                <div class="policy-section">
                    <h2>Introduction</h2>
                    <p>Welcome to <?php echo SITE_NAME; ?> ("we," "our," or "us"). We are committed to protecting your privacy and personal information. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our website and services.</p>
                    <p>By using <?php echo SITE_NAME; ?>, you agree to the collection and use of information in accordance with this policy.</p>
                </div>
                
                <!-- Information We Collect -->
                <div id="information-collect" class="policy-section">
                    <h2>Information We Collect</h2>
                    
                    <h3>Personal Information You Provide</h3>
                    <p>When you register an account, place a bid, or contact us, we may collect:</p>
                    <ul>
                        <li><strong>Contact Information:</strong> Name, email address, phone number, mailing address</li>
                        <li><strong>Account Credentials:</strong> Username and password (password is encrypted)</li>
                        <li><strong>Payment Information:</strong> Credit card details, bank account information (stored securely for transaction purposes)</li>
                        <li><strong>Bidding History:</strong> Records of bids placed, amounts, and auction participation</li>
                        <li><strong>Communication Preferences:</strong> Your marketing and notification preferences</li>
                    </ul>
                    
                    <h3>Information Automatically Collected</h3>
                    <p>When you visit our website, we automatically collect:</p>
                    <ul>
                        <li><strong>Device Information:</strong> IP address, browser type, operating system, device identifiers</li>
                        <li><strong>Usage Data:</strong> Pages visited, time spent, links clicked, search queries</li>
                        <li><strong>Location Data:</strong> Approximate geographic location based on IP address</li>
                    </ul>
                </div>
                
                <!-- How We Use Information -->
                <div id="information-use" class="policy-section">
                    <h2>How We Use Your Information</h2>
                    <p>We use the information we collect for the following purposes:</p>
                    <ul>
                        <li><strong>To Provide Services:</strong> Process bids, manage auctions, facilitate payments, and deliver winning vehicles</li>
                        <li><strong>To Communicate:</strong> Send bid confirmations, outbid notifications, auction results, and customer support responses</li>
                        <li><strong>To Improve Our Platform:</strong> Analyze usage patterns, fix bugs, and enhance user experience</li>
                        <li><strong>To Ensure Security:</strong> Detect fraud, prevent unauthorized access, and protect user accounts</li>
                        <li><strong>To Comply with Legal Obligations:</strong> Respond to lawful requests and enforce our terms of service</li>
                    </ul>
                    
                    <div class="info-box">
                        <i class="fas fa-envelope"></i> <strong>Email Communications:</strong> You may receive transactional emails (bid confirmations, outbid alerts) that are necessary for our services. You can opt out of marketing emails at any time.
                    </div>
                </div>
                
                <!-- Information Sharing -->
                <div id="information-share" class="policy-section">
                    <h2>Information Sharing</h2>
                    <p>We do not sell your personal information. We may share your information in the following circumstances:</p>
                    <ul>
                        <li><strong>With Sellers:</strong> When you win an auction, your contact information is shared with the seller to complete the transaction</li>
                        <li><strong>Service Providers:</strong> Third-party vendors who help us process payments, send emails, and analyze data</li>
                        <li><strong>Legal Requirements:</strong> When required by law, court order, or government regulation</li>
                        <li><strong>Business Transfers:</strong> In connection with a merger, acquisition, or sale of assets</li>
                    </ul>
                    
                    <div class="highlight-box">
                        <p><strong>Important:</strong> Your payment information is encrypted and processed through secure payment gateways. We do not store full credit card numbers on our servers.</p>
                    </div>
                </div>
                
                <!-- Cookies -->
                <div id="cookies" class="policy-section">
                    <h2>Cookies & Tracking Technologies</h2>
                    <p>We use cookies and similar tracking technologies to enhance your browsing experience. Cookies are small text files stored on your device.</p>
                    
                    <h3>Types of Cookies We Use</h3>
                    <ul>
                        <li><strong>Essential Cookies:</strong> Required for website functionality (login, bidding, cart)</li>
                        <li><strong>Preference Cookies:</strong> Remember your settings and preferences</li>
                        <li><strong>Analytics Cookies:</strong> Help us understand how visitors use our site</li>
                        <li><strong>Security Cookies:</strong> Protect against fraud and unauthorized access</li>
                    </ul>
                    
                    <p>You can control cookies through your browser settings. However, disabling cookies may affect website functionality.</p>
                </div>
                
                <!-- Data Security -->
                <div id="data-security" class="policy-section">
                    <h2>Data Security</h2>
                    <p>We implement industry-standard security measures to protect your information:</p>
                    <ul>
                        <li><strong>Encryption:</strong> SSL/TLS encryption for all data transmission</li>
                        <li><strong>Secure Storage:</strong> Encrypted databases and secure servers</li>
                        <li><strong>Access Controls:</strong> Limited employee access to personal information</li>
                        <li><strong>Regular Audits:</strong> Security assessments and vulnerability testing</li>
                    </ul>
                    <p>While we strive to protect your information, no method of transmission over the internet is 100% secure.</p>
                </div>
                
                <!-- Your Rights -->
                <div id="your-rights" class="policy-section">
                    <h2>Your Privacy Rights</h2>
                    <p>Depending on your location, you may have the following rights:</p>
                    <ul>
                        <li><strong>Access:</strong> Request a copy of your personal information</li>
                        <li><strong>Correction:</strong> Update or correct inaccurate information</li>
                        <li><strong>Deletion:</strong> Request deletion of your account and data</li>
                        <li><strong>Opt-Out:</strong> Unsubscribe from marketing communications</li>
                        <li><strong>Data Portability:</strong> Receive your data in a structured format</li>
                    </ul>
                    <p>To exercise these rights, contact us at <a href="mailto:privacy@bidwheels.net">privacy@bidwheels.net</a>.</p>
                </div>
                
                <!-- Children's Privacy -->
                <div id="children" class="policy-section">
                    <h2>Children's Privacy</h2>
                    <p>Our services are not directed to individuals under 18 years of age. We do not knowingly collect personal information from children. If you believe a child has provided us with personal information, please contact us immediately.</p>
                </div>
                
                <!-- Changes to Policy -->
                <div id="changes" class="policy-section">
                    <h2>Changes to This Privacy Policy</h2>
                    <p>We may update this Privacy Policy from time to time. We will notify you of any changes by posting the new policy on this page and updating the "Last Updated" date. We encourage you to review this policy periodically.</p>
                </div>
                
                <!-- Contact Us -->
                <div id="contact" class="policy-section">
                    <h2>Contact Us</h2>
                    <p>If you have questions about this Privacy Policy or our data practices, please contact us:</p>
                    
                    <div class="contact-card">
                        <h4><i class="fas fa-envelope"></i> Privacy Questions?</h4>
                        <p>Email our Privacy Team at <a href="mailto:privacy@bidwheels.net">privacy@bidwheels.net</a></p>
                        <p>Or contact our support team at <a href="mailto:support@bidwheels.net">support@bidwheels.net</a></p>
                        <p><i class="fas fa-phone"></i> +1 (555) 123-4567</p>
                        <p>123 Auction Avenue, New York, NY 10001</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

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