<?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>User Agreement</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}

/* TOC */
.toc{background:rgba(255,255,255,.75);border:1px solid rgba(255,255,255,.65);border-radius:16px;margin:14px 14px 0;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.toc-title{font-size:12px;font-weight:700;color:#3a5a2a;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}
.toc a{display:flex;align-items:center;gap:8px;font-size:13px;color:#3a5a2a;text-decoration:none;padding:6px 0;border-bottom:1px solid rgba(58,90,42,.08);transition:color .2s}
.toc a:last-child{border-bottom:none}
.toc a:hover{color:#3a7a4a}
.toc-num{width:22px;height:22px;border-radius:6px;flex-shrink:0;background:rgba(58,122,74,.15);color:#3a7a4a;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}

.content{padding:14px}

.section-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);scroll-margin-top:70px}
.section-title{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;color:#1a2a0a;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(58,90,42,.12)}
.s-num{width:30px;height:30px;border-radius:9px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;background:rgba(58,122,74,.15);color:#3a7a4a}

.section-card p{font-size:13px;color:#3a5a2a;line-height:1.75;margin-bottom:10px}
.section-card p:last-child{margin-bottom:0}
.section-card ul{padding-left:18px;margin:6px 0 10px}
.section-card ul li{font-size:13px;color:#3a5a2a;line-height:1.75;margin-bottom:6px}
.section-card strong{color:#1a2a0a}
.section-card a{color:#3a7a4a;font-weight:600;text-decoration:none}

.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}

.accept-bar{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)}
.accept-bar p{font-size:12px;color:#3a5a2a;margin-bottom:14px;line-height:1.6}
.accept-btn{display:block;width:100%;background:linear-gradient(135deg,#3a7a4a,#5aaa6a);color:#fff;text-decoration:none;padding:14px;border-radius:12px;font-size:14px;font-weight:700;text-align:center;border:none;cursor:pointer}
.links-row{display:flex;justify-content:center;gap:20px;margin-top:12px}
.links-row a{font-size:12px;color:#3a7a4a;text-decoration:none;font-weight:600}
</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-file-earmark-check me-1" style="color:#3a7a4a"></i>User Agreement</span>
</div>

<div class="hero">
  <i class="bi bi-file-earmark-check-fill"></i>
  <h1>User Agreement</h1>
  <p>Please read this agreement carefully before using<br>our platform. By registering, you agree to all terms below.</p>
  <div class="updated"><i class="bi bi-calendar3 me-1"></i>Effective Date: April 2026</div>
</div>

<!-- TOC -->
<div class="toc">
  <div class="toc-title"><i class="bi bi-list-ul me-1"></i>Contents</div>
  <a href="#s1"><div class="toc-num">1</div>Eligibility & Age Requirements</a>
  <a href="#s2"><div class="toc-num">2</div>Account Registration</a>
  <a href="#s3"><div class="toc-num">3</div>Platform Services</a>
  <a href="#s4"><div class="toc-num">4</div>Video Tasks & Earnings</a>
  <a href="#s5"><div class="toc-num">5</div>Investment Plans</a>
  <a href="#s6"><div class="toc-num">6</div>Deposits & Withdrawals</a>
  <a href="#s7"><div class="toc-num">7</div>Referral Program</a>
  <a href="#s8"><div class="toc-num">8</div>Prohibited Conduct</a>
  <a href="#s9"><div class="toc-num">9</div>Privacy & Data Protection</a>
  <a href="#s10"><div class="toc-num">10</div>Limitation of Liability</a>
  <a href="#s11"><div class="toc-num">11</div>Termination</a>
  <a href="#s12"><div class="toc-num">12</div>Governing Law</a>
</div>

<div class="content">

  <div class="section-card" id="s1">
    <div class="section-title"><div class="s-num">1</div>Eligibility & Age Requirements</div>
    <p>To use this platform you must meet the following eligibility requirements:</p>
    <ul>
      <li>You must be at least <strong>18 years of age</strong></li>
      <li>You must be legally capable of entering into a binding agreement</li>
      <li>Your participation must not violate the laws of your country or region</li>
      <li>You must provide accurate and truthful registration information</li>
    </ul>
    <div class="red-box"><strong>Strict 18+ Policy:</strong> This platform is strictly for adults. Any user found to be under 18 years of age will have their account immediately terminated, all funds frozen, and the matter referred to appropriate authorities if required.</div>
  </div>

  <div class="section-card" id="s2">
    <div class="section-title"><div class="s-num">2</div>Account Registration</div>
    <p>When you register an account, you agree to:</p>
    <ul>
      <li>Provide accurate, complete, and up-to-date information</li>
      <li>Maintain the security of your login credentials</li>
      <li>Immediately notify us of any unauthorized account access</li>
      <li>Not register more than one account per person</li>
      <li>Not register on behalf of another person without authorization</li>
    </ul>
    <div class="green-box"><strong>One Account Policy:</strong> Each individual is permitted to hold only one account. Duplicate accounts will result in permanent suspension of all associated accounts without refund.</div>
  </div>

  <div class="section-card" id="s3">
    <div class="section-title"><div class="s-num">3</div>Platform Services</div>
    <p>Our platform provides two core services to members:</p>
    <ul>
      <li><strong>Video Task System:</strong> Members earn income by completing daily video watching tasks including movies, promotional content, and educational media assigned based on their active plan</li>
      <li><strong>Wealth Fund Investment:</strong> Members can access long-term legitimate investment plans that generate daily returns over a defined cycle period</li>
    </ul>
    <p>We reserve the right to modify, suspend, or discontinue any feature or service at any time with reasonable notice.</p>
  </div>

  <div class="section-card" id="s4">
    <div class="section-title"><div class="s-num">4</div>Video Tasks & Earnings</div>
    <p>By participating in video tasks, you agree to:</p>
    <ul>
      <li>Complete tasks honestly and in good faith</li>
      <li>Not use bots, scripts, or automated tools to simulate task completion</li>
      <li>Not attempt to manipulate the task system to earn undeserved income</li>
      <li>Accept that task earnings are only credited upon genuine completion</li>
    </ul>
    <p>We reserve the right to reverse earnings obtained through fraudulent task completion.</p>
  </div>

  <div class="section-card" id="s5">
    <div class="section-title"><div class="s-num">5</div>Investment Plans</div>
    <p>Our investment plans are legitimate wealth fund products. By investing, you acknowledge and agree that:</p>
    <ul>
      <li>Investments are <strong>locked for the full cycle duration</strong> and cannot be withdrawn early</li>
      <li>The daily return rate and cycle length are fixed and shown clearly before investment</li>
      <li>Returns are credited automatically at maturity to your account balance</li>
      <li>You only invest amounts you are financially prepared to lock for the full cycle</li>
    </ul>
    <div class="gold-box"><strong>Risk Acknowledgment:</strong> While our investments are backed by platform revenue from media licensing and advertising partnerships, all financial products carry inherent risk. Only invest what you can afford.</div>
  </div>

  <div class="section-card" id="s6">
    <div class="section-title"><div class="s-num">6</div>Deposits & Withdrawals</div>
    <p>You agree to the following financial transaction terms:</p>
    <ul>
      <li>All deposits must be made through approved payment channels listed on the platform</li>
      <li>You are responsible for ensuring withdrawal account details are accurate</li>
      <li>We are not liable for funds lost due to incorrect withdrawal information you provided</li>
      <li>Withdrawals are processed within the stated timeframe (typically 1–3 business days)</li>
      <li>We reserve the right to verify your identity before processing large withdrawals</li>
    </ul>
    <div class="red-box"><strong>No Chargebacks:</strong> By depositing funds, you agree not to initiate chargebacks or payment disputes. Unauthorized chargebacks will result in immediate account suspension.</div>
  </div>

  <div class="section-card" id="s7">
    <div class="section-title"><div class="s-num">7</div>Referral Program</div>
    <p>Our referral program allows you to earn commissions by inviting new members. You agree to:</p>
    <ul>
      <li>Only share your referral link through honest and transparent means</li>
      <li>Not make false claims or misleading promises to recruit members</li>
      <li>Not create fake accounts to generate artificial referral commissions</li>
      <li>Accept that referral commissions are only earned on genuine new member activations</li>
    </ul>
  </div>

  <div class="section-card" id="s8">
    <div class="section-title"><div class="s-num">8</div>Prohibited Conduct</div>
    <p>The following actions are strictly prohibited and will result in immediate account termination:</p>
    <ul>
      <li>Registering while under 18 years of age</li>
      <li>Creating multiple accounts</li>
      <li>Using automated bots or scripts</li>
      <li>Attempting to hack, exploit, or reverse-engineer the platform</li>
      <li>Engaging in money laundering or using the platform for illegal activities</li>
      <li>Sharing false or defamatory information about the platform</li>
      <li>Initiating fraudulent chargebacks or payment disputes</li>
      <li>Violating any applicable local, national, or international law</li>
    </ul>
    <div class="red-box"><strong>Zero Tolerance:</strong> Violations will result in permanent account termination, forfeiture of all funds, and may be reported to law enforcement.</div>
  </div>

  <div class="section-card" id="s9">
    <div class="section-title"><div class="s-num">9</div>Privacy & Data Protection</div>
    <p>Your personal data is protected in accordance with our <a href="privacy.php">Privacy Policy</a>, which forms part of this agreement. Key commitments:</p>
    <ul>
      <li>All registration and financial data is protected with <strong>end-to-end encryption</strong></li>
      <li>Your data is never sold or shared with third parties for commercial purposes</li>
      <li>You have the right to request access to, correction of, or deletion of your data</li>
    </ul>
    <div class="green-box"><strong>Your Privacy Matters:</strong> We treat your personal information with the highest level of confidentiality and security. Review our full Privacy Policy for complete details.</div>
  </div>

  <div class="section-card" id="s10">
    <div class="section-title"><div class="s-num">10</div>Limitation of Liability</div>
    <p>To the fullest extent permitted by law, we shall not be liable for:</p>
    <ul>
      <li>Financial losses resulting from your own investment decisions</li>
      <li>Losses due to unauthorized account access caused by your negligence</li>
      <li>Losses from incorrect withdrawal details you provided</li>
      <li>Temporary platform unavailability due to maintenance or technical issues</li>
      <li>Losses resulting from events beyond our reasonable control</li>
    </ul>
  </div>

  <div class="section-card" id="s11">
    <div class="section-title"><div class="s-num">11</div>Termination</div>
    <p>Either party may terminate this agreement:</p>
    <ul>
      <li><strong>By You:</strong> Close your account at any time by contacting support, subject to completion of active investment cycles and pending withdrawals</li>
      <li><strong>By Us:</strong> We may suspend or terminate your account immediately if you violate this agreement or engage in prohibited conduct</li>
    </ul>
    <p>Upon termination, any balance remaining after settlement of obligations will be returned unless forfeited due to violation of these terms.</p>
  </div>

  <div class="section-card" id="s12">
    <div class="section-title"><div class="s-num">12</div>Governing Law & Amendments</div>
    <p>This agreement is governed by the laws applicable to our platform's operating jurisdiction. We reserve the right to amend this agreement at any time. Continued use after amendments constitutes acceptance of the updated terms.</p>
    <div class="gold-box"><strong>Agreement Acceptance:</strong> By creating an account and using this platform, you confirm that you have read, understood, and agreed to this User Agreement in its entirety.</div>
  </div>

  <div class="accept-bar">
    <p>By using our platform you confirm you are <strong>18+</strong> and have read and agreed to this User Agreement and Privacy Policy.</p>
    <a href="javascript:history.back()" class="accept-btn"><i class="bi bi-check-circle-fill me-1"></i>I Understand & Agree</a>
    <div class="links-row">
      <a href="privacy.php"><i class="bi bi-shield-lock me-1"></i>Privacy Policy</a>
      <a href="faq.php"><i class="bi bi-question-circle me-1"></i>FAQ</a>
      <a href="<?= htmlspecialchars($support_url) ?>" target="_blank"><i class="bi bi-headset me-1"></i>Support</a>
    </div>
  </div>

</div>

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