<?php
// terms.php - Terms of Service Page
// File location: /bidwheels.net/terms.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; ?> Terms of Service - the rules and guidelines for using our auction platform.">
    <title>Terms of Service - <?php echo SITE_NAME; ?></title>
    
    <style>
        .terms-page {
            background: linear-gradient(135deg, #EFEBE0 0%, #e5e0d4 100%);
            min-height: 100vh;
            padding: 60px 0;
        }
        
        .terms-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .terms-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .terms-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;
        }
        
        .terms-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;
        }
        
        .terms-grid {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 40px;
        }
        
        .terms-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);
        }
        
        .terms-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);
        }
        
        .terms-content {
            background: white;
            border-radius: 32px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }
        
        .terms-section {
            margin-bottom: 40px;
            scroll-margin-top: 100px;
        }
        
        .terms-section:last-child {
            margin-bottom: 0;
        }
        
        .terms-section h2 {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #FF8C3E;
            display: inline-block;
        }
        
        .terms-section h3 {
            font-size: 20px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 25px 0 15px;
        }
        
        .terms-section p {
            color: #555;
            line-height: 1.7;
            margin-bottom: 15px;
            font-size: 15px;
        }
        
        .terms-section ul, 
        .terms-section ol {
            margin: 15px 0 15px 25px;
            color: #555;
            line-height: 1.7;
        }
        
        .terms-section li {
            margin-bottom: 8px;
        }
        
        .highlight-box {
            background: #fef5ee;
            padding: 20px;
            border-left: 4px solid #FF8C3E;
            border-radius: 16px;
            margin: 20px 0;
        }
        
        .warning-box {
            background: #fff3cd;
            padding: 20px;
            border-left: 4px solid #ffc107;
            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;
        }
        
        @media (max-width: 992px) {
            .terms-grid {
                grid-template-columns: 1fr;
            }
            
            .terms-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) {
            .terms-page {
                padding: 40px 0;
            }
            
            .terms-container {
                padding: 0 16px;
            }
            
            .terms-header h1 {
                font-size: 32px;
            }
            
            .terms-content {
                padding: 25px;
            }
            
            .terms-section h2 {
                font-size: 24px;
            }
        }
    </style>
</head>
<body>

<div class="terms-page">
    <div class="terms-container">
        <div class="terms-header">
            <h1>Terms of Service</h1>
            <p>The rules and guidelines for using <?php echo SITE_NAME; ?> auction platform</p>
            <div class="last-updated">Last Updated: June 11, 2025</div>
        </div>
        
        <div class="terms-grid">
            <aside class="terms-nav">
                <h3><i class="fas fa-file-alt"></i> On This Page</h3>
                <ul class="nav-list">
                    <li><a href="#acceptance"><i class="fas fa-check-circle"></i> Acceptance of Terms</a></li>
                    <li><a href="#eligibility"><i class="fas fa-user-check"></i> Eligibility</a></li>
                    <li><a href="#accounts"><i class="fas fa-user"></i> User Accounts</a></li>
                    <li><a href="#bidding-rules"><i class="fas fa-gavel"></i> Bidding Rules</a></li>
                    <li><a href="#payments"><i class="fas fa-credit-card"></i> Payments & Fees</a></li>
                    <li><a href="#delivery"><i class="fas fa-truck"></i> Shipping & Delivery</a></li>
                    <li><a href="#prohibited"><i class="fas fa-ban"></i> Prohibited Conduct</a></li>
                    <li><a href="#intellectual"><i class="fas fa-copyright"></i> Intellectual Property</a></li>
                    <li><a href="#termination"><i class="fas fa-trash-alt"></i> Account Termination</a></li>
                    <li><a href="#disclaimers"><i class="fas fa-exclamation-triangle"></i> Disclaimers</a></li>
                    <li><a href="#liability"><i class="fas fa-gavel"></i> Limitation of Liability</a></li>
                    <li><a href="#governing-law"><i class="fas fa-balance-scale"></i> Governing Law</a></li>
                    <li><a href="#changes"><i class="fas fa-edit"></i> Changes to Terms</a></li>
                    <li><a href="#contact"><i class="fas fa-envelope"></i> Contact Us</a></li>
                </ul>
            </aside>
            
            <div class="terms-content">
                <!-- Acceptance -->
                <div id="acceptance" class="terms-section">
                    <h2>1. Acceptance of Terms</h2>
                    <p>By accessing or using <?php echo SITE_NAME; ?> (the "Platform"), you agree to be bound by these Terms of Service ("Terms"). If you do not agree to these Terms, please do not use our Platform.</p>
                    <div class="highlight-box">
                        <p><strong>Important:</strong> These Terms constitute a legally binding agreement between you and <?php echo SITE_NAME; ?>.</p>
                    </div>
                </div>
                
                <!-- Eligibility -->
                <div id="eligibility" class="terms-section">
                    <h2>2. Eligibility</h2>
                    <p>To use <?php echo SITE_NAME; ?>, you must:</p>
                    <ul>
                        <li>Be at least 18 years of age</li>
                        <li>Have the legal capacity to enter into binding contracts</li>
                        <li>Provide accurate and complete registration information</li>
                        <li>Not be prohibited from using our services by any applicable law</li>
                    </ul>
                    <div class="warning-box">
                        <p><strong>Warning:</strong> Providing false information may result in immediate account termination and legal action.</p>
                    </div>
                </div>
                
                <!-- User Accounts -->
                <div id="accounts" class="terms-section">
                    <h2>3. User Accounts</h2>
                    <h3>3.1 Account Creation</h3>
                    <p>To participate in auctions, you must create an account. You agree to provide accurate, current, and complete information during registration.</p>
                    
                    <h3>3.2 Account Security</h3>
                    <p>You are responsible for maintaining the confidentiality of your login credentials. You agree to notify us immediately of any unauthorized use of your account.</p>
                    
                    <h3>3.3 Account Responsibility</h3>
                    <p>You are solely responsible for all activities that occur under your account. <?php echo SITE_NAME; ?> is not liable for any loss or damage arising from unauthorized use of your account.</p>
                </div>
                
                <!-- Bidding Rules -->
                <div id="bidding-rules" class="terms-section">
                    <h2>4. Bidding Rules</h2>
                    <h3>4.1 Binding Bids</h3>
                    <p>All bids placed on <?php echo SITE_NAME; ?> are final and legally binding. By placing a bid, you agree to purchase the vehicle at the bid amount if you are the winning bidder.</p>
                    
                    <h3>4.2 Bid Retraction</h3>
                    <p>Bids cannot be retracted once placed. In exceptional circumstances, contact support within 1 hour of placing the bid.</p>
                    
                    <h3>4.3 Auction Extensions</h3>
                    <p>We reserve the right to extend auction end times in the event of technical issues or suspicious activity.</p>
                    
                    <h3>4.4 Reserve Prices</h3>
                    <p>Some auctions may have confidential reserve prices. If the reserve is not met, the auction may be canceled even if you are the highest bidder.</p>
                    
                    <div class="info-box">
                        <i class="fas fa-info-circle"></i> <strong>Note:</strong> Reserve prices, if any, are disclosed on the product page.
                    </div>
                </div>
                
                <!-- Payments & Fees -->
                <div id="payments" class="terms-section">
                    <h2>5. Payments & Fees</h2>
                    <h3>5.1 Payment Obligations</h3>
                    <p>Winning bidders must complete payment within 48 hours of auction end. Failure to pay may result in account suspension.</p>
                    
                    <h3>5.2 Accepted Payment Methods</h3>
                    <ul>
                        <li>Credit Card (Visa, MasterCard, American Express)</li>
                        <li>Bank Transfer (wire transfer)</li>
                        <li>Other methods as displayed on the payment page</li>
                    </ul>
                    
                    <h3>5.3 Fees</h3>
                    <p>Buyer's premium may apply to winning bids. Any applicable fees are disclosed before bidding.</p>
                    
                    <h3>5.4 Taxes</h3>
                    <p>You are responsible for all applicable taxes, including sales tax, VAT, and import duties.</p>
                    
                    <div class="highlight-box">
                        <p><strong>Important:</strong> Payment must be made in full before vehicle release. No exceptions.</p>
                    </div>
                </div>
                
                <!-- Shipping & Delivery -->
                <div id="delivery" class="terms-section">
                    <h2>6. Shipping & Delivery</h2>
                    <h3>6.1 Pickup & Shipping</h3>
                    <p>Winning bidders are responsible for arranging vehicle pickup or shipping. Shipping costs are not included in the bid amount unless stated otherwise.</p>
                    
                    <h3>6.2 Delivery Timeline</h3>
                    <p>Sellers must prepare vehicles for pickup within 7 business days of payment confirmation.</p>
                    
                    <h3>6.3 Risk of Loss</h3>
                    <p>Risk of loss transfers to the buyer upon pickup or delivery to the shipping carrier.</p>
                </div>
                
                <!-- Prohibited Conduct -->
                <div id="prohibited" class="terms-section">
                    <h2>7. Prohibited Conduct</h2>
                    <p>You agree NOT to:</p>
                    <ul>
                        <li>Place bids with no intention of completing the purchase</li>
                        <li>Use multiple accounts to manipulate auctions</li>
                        <li>Post false or misleading information</li>
                        <li>Attempt to hack, disrupt, or damage our Platform</li>
                        <li>Scrape or copy content without permission</li>
                        <li>Harass other users or our staff</li>
                        <li>Engage in fraudulent or illegal activities</li>
                    </ul>
                    <div class="warning-box">
                        <p><strong>Warning:</strong> Violation of these rules may result in immediate account termination and legal action.</p>
                    </div>
                </div>
                
                <!-- Intellectual Property -->
                <div id="intellectual" class="terms-section">
                    <h2>8. Intellectual Property</h2>
                    <p>All content on <?php echo SITE_NAME; ?>, including logos, text, images, and software, is the property of <?php echo SITE_NAME; ?> or its licensors and is protected by copyright and trademark laws.</p>
                    <p>You may not reproduce, distribute, or create derivative works without our express written permission.</p>
                </div>
                
                <!-- Account Termination -->
                <div id="termination" class="terms-section">
                    <h2>9. Account Termination</h2>
                    <p>We reserve the right to suspend or terminate your account for:</p>
                    <ul>
                        <li>Violation of these Terms</li>
                        <li>Fraudulent or illegal activity</li>
                        <li>Failure to complete payment after winning a bid</li>
                        <li>Harassment of other users</li>
                    </ul>
                    <p>You may delete your account at any time by contacting support.</p>
                </div>
                
                <!-- Disclaimers -->
                <div id="disclaimers" class="terms-section">
                    <h2>10. Disclaimers</h2>
                    <p><?php echo SITE_NAME; ?> provides the Platform "as is" and "as available" without warranties of any kind. We do not guarantee:</p>
                    <ul>
                        <li>That the Platform will be uninterrupted or error-free</li>
                        <li>The accuracy of vehicle descriptions or condition</li>
                        <li>That you will win any auction</li>
                        <li>The availability of any specific vehicle</li>
                    </ul>
                    <div class="info-box">
                        <i class="fas fa-car"></i> <strong>Vehicle Condition:</strong> Vehicle descriptions are provided by sellers. We recommend independent inspections before bidding.
                    </div>
                </div>
                
                <!-- Limitation of Liability -->
                <div id="liability" class="terms-section">
                    <h2>11. Limitation of Liability</h2>
                    <p>To the maximum extent permitted by law, <?php echo SITE_NAME; ?> shall not be liable for any indirect, incidental, special, consequential, or punitive damages arising from your use of the Platform.</p>
                    <p>Our total liability shall not exceed the amount you paid in fees to us in the 12 months preceding the claim.</p>
                </div>
                
                <!-- Governing Law -->
                <div id="governing-law" class="terms-section">
                    <h2>12. Governing Law</h2>
                    <p>These Terms shall be governed by and construed in accordance with the laws of the State of New York, without regard to its conflict of law provisions.</p>
                    <p>Any disputes arising under these Terms shall be resolved exclusively in the state or federal courts located in New York County, New York.</p>
                </div>
                
                <!-- Changes to Terms -->
                <div id="changes" class="terms-section">
                    <h2>13. Changes to Terms</h2>
                    <p>We may modify these Terms at any time. We will notify you of material changes by posting the new Terms on this page and updating the "Last Updated" date.</p>
                    <p>Your continued use of the Platform after changes constitutes acceptance of the revised Terms.</p>
                </div>
                
                <!-- Contact -->
                <div id="contact" class="terms-section">
                    <h2>14. Contact Us</h2>
                    <p>If you have questions about these Terms, please contact us:</p>
                    <ul>
                        <li>Email: <a href="mailto:support@bidwheels.net">support@bidwheels.net</a></li>
                        <li>Phone: +1 (555) 123-4567</li>
                        <li>Address: 123 Auction Avenue, New York, NY 10001</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

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