<?php
require_once 'db.php';
require_once 'auth_check.php';
$_sup = $conn->query("SELECT key_value FROM settings WHERE key_name='support_url'");
$support_url = ($_sup && $_row = $_sup->fetch_assoc()) ? ($_row['key_value'] ?? '#') : '#';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Privacy Policy</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css">
<style>
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{background:linear-gradient(160deg,#b8cba8 0%,#a8bc96 40%,#8faa7a 100%);min-height:100vh;font-family:'Segoe UI',system-ui,sans-serif;color:#1a2a0a;padding-bottom:90px}

.topbar{background:rgba(255,255,255,.6);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.5);padding:13px 16px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:200}
.back-btn{color:#3a5a2a;font-size:20px;text-decoration:none}
.topbar-title{font-weight:700;font-size:16px;color:#1a2a0a}

.hero{background:rgba(255,255,255,.35);border-bottom:1px solid rgba(255,255,255,.4);padding:28px 20px 24px;text-align:center}
.hero i{font-size:44px;color:#3a7a4a;display:block;margin-bottom:10px}
.hero h1{font-size:20px;font-weight:800;color:#1a2a0a;margin-bottom:6px}
.hero p{font-size:13px;color:#3a5a2a;line-height:1.6}
.hero .updated{font-size:11px;color:#5a7a4a;margin-top:8px}

.content{padding:14px}

.policy-card{background:rgba(255,255,255,.75);border:1px solid rgba(255,255,255,.65);border-radius:16px;padding:18px 16px;margin-bottom:12px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.card-title{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;color:#1a2a0a;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid rgba(58,90,42,.12)}
.card-icon{width:34px;height:34px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:17px;background:rgba(58,122,74,.15);color:#3a7a4a}
.policy-card p{font-size:13px;color:#3a5a2a;line-height:1.75;margin-bottom:10px}
.policy-card p:last-child{margin-bottom:0}
.policy-card ul{padding-left:18px;margin:8px 0 10px}
.policy-card ul li{font-size:13px;color:#3a5a2a;line-height:1.7;margin-bottom:5px}
.policy-card strong{color:#1a2a0a}

.green-box{background:rgba(58,122,74,.1);border:1px solid rgba(58,122,74,.25);border-radius:12px;padding:14px 15px;margin:10px 0;font-size:13px;color:#2a4a1a;line-height:1.7}
.green-box strong{color:#2a6a3a}
.gold-box{background:rgba(180,130,20,.08);border:1px solid rgba(180,130,20,.25);border-radius:12px;padding:14px 15px;margin:10px 0;font-size:13px;color:#3a3010;line-height:1.7}
.gold-box strong{color:#7a5a10}
.red-box{background:rgba(180,50,50,.07);border:1px solid rgba(180,50,50,.2);border-radius:12px;padding:14px 15px;margin:10px 0;font-size:13px;color:#3a1010;line-height:1.7}
.red-box strong{color:#8a2020}

.contact-card{background:rgba(255,255,255,.75);border:1px solid rgba(255,255,255,.65);border-radius:16px;padding:20px;text-align:center;margin-bottom:12px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.contact-card i{font-size:28px;color:#3a7a4a;display:block;margin-bottom:8px}
.contact-card h3{font-size:15px;font-weight:700;margin-bottom:6px;color:#1a2a0a}
.contact-card p{font-size:12px;color:#3a5a2a;margin-bottom:14px}
.contact-card a{display:inline-block;background:linear-gradient(135deg,#3a7a4a,#5aaa6a);color:#fff;text-decoration:none;padding:11px 28px;border-radius:10px;font-size:13px;font-weight:700}
</style>
</head>
<body>

<div class="topbar">
  <a href="javascript:history.back()" class="back-btn"><i class="bi bi-arrow-left"></i></a>
  <span class="topbar-title"><i class="bi bi-shield-lock me-1" style="color:#3a7a4a"></i>Privacy Policy</span>
</div>

<div class="hero">
  <i class="bi bi-shield-lock-fill"></i>
  <h1>Privacy Policy</h1>
  <p>Your privacy is our highest priority.<br>We are committed to protecting your personal data.</p>
  <div class="updated"><i class="bi bi-calendar3 me-1"></i>Last Updated: April 2026</div>
</div>

<div class="content">

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-file-earmark-text"></i></div>Introduction</div>
    <p>This Privacy Policy explains how we collect, use, store, and protect your personal information when you use our platform. By registering and using our services, you agree to the terms described in this policy.</p>
    <p>We take your privacy seriously and operate under a strict <strong>zero-disclosure policy</strong> — your personal data is never sold, traded, or shared with third parties without your explicit consent.</p>
  </div>

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-database"></i></div>Information We Collect</div>
    <p>When you register and use our platform, we may collect the following:</p>
    <ul>
      <li><strong>Personal Identity:</strong> Full name, date of birth, and age verification data</li>
      <li><strong>Contact Information:</strong> Phone number and/or email address</li>
      <li><strong>Financial Information:</strong> Deposit and withdrawal account details</li>
      <li><strong>Device Information:</strong> IP address, device type, browser, and operating system</li>
      <li><strong>Usage Data:</strong> Pages visited, tasks completed, videos watched, login timestamps</li>
      <li><strong>Referral Data:</strong> Information about members you have referred</li>
    </ul>
    <div class="green-box"><strong>Age Requirement:</strong> We only collect data from individuals who are <strong>18 years of age or older</strong>. If we discover a user is under 18, their account will be immediately terminated and all data deleted.</div>
  </div>

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-gear"></i></div>How We Use Your Information</div>
    <p>Your data is used solely for the following purposes:</p>
    <ul>
      <li>Creating and managing your account</li>
      <li>Processing deposits, withdrawals, and investment returns</li>
      <li>Assigning and tracking your daily video tasks</li>
      <li>Calculating and distributing referral commissions</li>
      <li>Sending important account notifications and updates</li>
      <li>Detecting and preventing fraud or unauthorized access</li>
      <li>Improving platform performance and user experience</li>
      <li>Complying with legal obligations where required</li>
    </ul>
  </div>

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-lock-fill"></i></div>End-to-End Data Encryption</div>
    <p>All personal and financial data is protected using <strong>industry-standard end-to-end encryption (E2EE)</strong>. This means:</p>
    <ul>
      <li>Your data is encrypted before it leaves your device</li>
      <li>It can only be decrypted by authorized systems on our secure servers</li>
      <li>No third party can intercept or read your data in transit</li>
      <li>Passwords are stored using one-way cryptographic hashing — never in plain text</li>
    </ul>
    <div class="green-box"><strong>Your financial details</strong> including withdrawal account numbers and balances are encrypted at rest and never accessible to platform staff in plain form.</div>
  </div>

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-share"></i></div>Data Sharing & Disclosure</div>
    <p>We <strong>do not sell, rent, or share</strong> your personal information with any third parties for marketing purposes. Your data may only be disclosed in these limited circumstances:</p>
    <ul>
      <li><strong>Legal Compliance:</strong> If required by law, court order, or government authority</li>
      <li><strong>Fraud Prevention:</strong> To investigate suspected fraud or security threats</li>
      <li><strong>Payment Processing:</strong> Only minimum necessary data shared with payment processors</li>
      <li><strong>Platform Operations:</strong> Trusted service providers bound by strict confidentiality agreements</li>
    </ul>
    <div class="red-box"><strong>Important:</strong> We will never share your data with advertisers, data brokers, or unaffiliated companies.</div>
  </div>

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-archive"></i></div>Data Retention</div>
    <p>We retain your personal data for as long as your account is active. If you request account deletion:</p>
    <ul>
      <li>Your personal profile data will be permanently deleted within <strong>30 days</strong></li>
      <li>Transaction records may be retained up to <strong>7 years</strong> for legal and financial compliance</li>
      <li>Anonymized, non-identifiable usage data may be retained for platform analytics</li>
    </ul>
  </div>

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-person-badge"></i></div>Your Rights</div>
    <p>You have the following rights regarding your personal data:</p>
    <ul>
      <li><strong>Access:</strong> Request a copy of the personal data we hold about you</li>
      <li><strong>Correction:</strong> Request correction of inaccurate or incomplete information</li>
      <li><strong>Deletion:</strong> Request deletion of your account and personal data</li>
      <li><strong>Portability:</strong> Request a portable copy of your data in a standard format</li>
      <li><strong>Objection:</strong> Object to certain uses of your data</li>
    </ul>
    <p>To exercise any of these rights, contact our support team through the platform.</p>
  </div>

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-browser-chrome"></i></div>Cookies & Tracking</div>
    <p>We use session cookies to keep you logged in and maintain your preferences. We do <strong>not</strong> use third-party tracking cookies or advertising trackers. You can disable cookies in your browser settings, but some platform features may not function correctly without them.</p>
  </div>

  <div class="policy-card">
    <div class="card-title"><div class="card-icon"><i class="bi bi-arrow-clockwise"></i></div>Changes to This Policy</div>
    <p>We may update this Privacy Policy from time to time. When we do, the updated date at the top of this page will be revised. Continued use of the platform after changes constitutes acceptance of the updated policy.</p>
  </div>

  <div class="contact-card">
    <i class="bi bi-envelope-fill"></i>
    <h3>Privacy Questions?</h3>
    <p>If you have any questions or concerns about your privacy or this policy, contact our support team.</p>
    <a href="<?= htmlspecialchars($support_url) ?>" target="_blank"><i class="bi bi-chat-dots me-1"></i>Contact Support</a>
  </div>

</div>

<?php include 'navigation_bottom.php'; ?>
</body>
</html>