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

<?php include 'header.php'; ?>

<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-header bg-primary text-white">
                <h2 class="mb-0"><i class="fas fa-shield-alt me-2"></i>Privacy Policy</h2>
            </div>
            <div class="card-body">
                <h4>1. Information We Collect</h4>
                <p>We collect personal information that you provide to us when registering for membership, including:</p>
                <ul>
                    <li>Full name and contact information</li>
                    <li>Email address and phone number</li>
                    <li>Date of birth and gender</li>
                    <li>Address and location details</li>
                    <li>Profile photograph</li>
                    <li>Membership type and payment information</li>
                </ul>
                
                <h4>2. How We Use Your Information</h4>
                <p>We use the information we collect to:</p>
                <ul>
                    <li>Process your membership registration and renewals</li>
                    <li>Generate and manage your digital ID card</li>
                    <li>Send you important updates about events and activities</li>
                    <li>Communicate with you about your membership status</li>
                    <li>Improve our services and user experience</li>
                    <li>Comply with legal obligations</li>
                </ul>
                
                <h4>3. Information Sharing</h4>
                <p>We do not sell, trade, or rent your personal information to third parties. We may share your information with:</p>
                <ul>
                    <li>Service providers who assist in our operations</li>
                    <li>Law enforcement when required by law</li>
                    <li>Event organizers for events you register for</li>
                </ul>
                
                <h4>4. Data Security</h4>
                <p>We implement appropriate security measures to protect your personal information, including:</p>
                <ul>
                    <li>Secure data storage and encryption</li>
                    <li>Regular security audits</li>
                    <li>Access controls and authentication</li>
                    <li>Secure data transmission protocols</li>
                </ul>
                
                <h4>5. Your Rights</h4>
                <p>You have the right to:</p>
                <ul>
                    <li>Access your personal information</li>
                    <li>Correct inaccurate information</li>
                    <li>Request deletion of your information</li>
                    <li>Opt-out of communications</li>
                    <li>Data portability</li>
                </ul>
                
                <h4>6. Cookies</h4>
                <p>We use cookies to enhance your experience on our website. Cookies are small files stored on your device that help us remember your preferences and analyze site usage.</p>
                
                <h4>7. Updates to This Policy</h4>
                <p>We may update this privacy policy from time to time. We will notify you of any significant changes by posting the new policy on this page.</p>
                
                <h4>8. Contact Us</h4>
                <p>If you have any questions about this privacy policy, please contact us at:</p>
                <p>
                    <strong><?php echo SITE_NAME; ?></strong><br>
                    Email: <?php echo getSystemSetting($pdo, 'system_email'); ?><br>
                    Phone: <?php echo getSystemSetting($pdo, 'system_phone'); ?><br>
                    Address: <?php echo getSystemSetting($pdo, 'system_address'); ?>
                </p>
                
                <hr>
                <p class="text-muted"><small>Last updated: <?php echo date('F d, Y'); ?></small></p>
            </div>
        </div>
    </div>
</div>

<?php include 'footer.php'; ?>