<?php
require_once 'includes/functions.php';
initSession();
require_once 'config/config.php';
$seo = getSEO('privacy');
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <!-- Google Tag Manager -->
  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-N8NQFC4Z');</script>
  <!-- End Google Tag Manager -->
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><?php echo htmlspecialchars($seo['title']); ?></title>
  <meta name="description" content="<?php echo htmlspecialchars($seo['description']); ?>">
  <meta name="keywords" content="<?php echo htmlspecialchars($seo['keywords']); ?>">
  <link rel="canonical" href="https://gobotad.com/privacy" />
  
  <!-- Open Graph / Facebook -->
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://gobotad.com/privacy">
  <meta property="og:title" content="<?php echo htmlspecialchars($seo['title']); ?>">
  <meta property="og:description" content="<?php echo htmlspecialchars($seo['description']); ?>">
  <meta property="og:image" content="https://gobotad.com/uploads/banners/69d16da394dd8_1775332771.png">

  <!-- Twitter -->
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="https://gobotad.com/privacy">
  <meta name="twitter:title" content="<?php echo htmlspecialchars($seo['title']); ?>">
  <meta name="twitter:description" content="<?php echo htmlspecialchars($seo['description']); ?>">
  <meta name="twitter:image" content="https://gobotad.com/uploads/banners/69d16da394dd8_1775332771.png">

  <!-- Structured Data (JSON-LD) FAQPage for Privacy Policy -->
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "What information does GoBotad collect?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "GoBotad collects personal details (name, phone number, email address), location data for tracking deliveries, transaction details (processed securely via trusted gateways), device information, and usage history to ensure order fulfillment."
        }
      },
      {
        "@type": "Question",
        "name": "How does GoBotad secure my payment details?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "All financial transactions and payments are securely handled via trusted, PCI-compliant payment gateways like Razorpay. GoBotad does not store full credit card numbers or sensitive financial data on its servers."
        }
      },
      {
        "@type": "Question",
        "name": "Is my live GPS location tracked permanently?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "No, your live GPS location is tracked only for the duration of delivery logistics to assist the delivery rider in locating your address. It is not recorded or used for permanent surveillance."
        }
      }
    ]
  }
  </script>

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <style>
    :root {
      --primary: #f97316;
      --primary-dark: #ea580c;
      --dark: #0f172a;
      --gray: #64748b;
      --light-gray: #f8fafc;
      --border: #e2e8f0;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Outfit', sans-serif;
    }

    body {
      background-color: var(--light-gray);
      color: #334155;
      line-height: 1.7;
    }

    /* Header */
    header {
      background: white;
      padding: 20px 0;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 1px solid var(--border);
    }

    .container {
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--dark);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo i {
      color: var(--primary);
    }

    .back-btn {
      padding: 8px 16px;
      background: var(--light-gray);
      color: var(--dark);
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.2s;
    }

    .back-btn:hover {
      background: #e2e8f0;
    }

    /* Main Content */
    .main-content {
      padding: 60px 0;
    }

    .page-title {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--dark);
      margin-bottom: 10px;
      text-align: center;
    }

    .last-updated {
      text-align: center;
      color: var(--gray);
      font-size: 0.95rem;
      margin-bottom: 40px;
    }

    .policy-card {
      background: white;
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
      border: 1px solid var(--border);
    }

    .section-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--dark);
      margin: 30px 0 15px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .section-title i {
      color: var(--primary);
      font-size: 1.2rem;
      background: #fff7ed;
      padding: 10px;
      border-radius: 10px;
    }

    p {
      color: #475569;
      margin-bottom: 15px;
      font-size: 1.05rem;
    }

    ul {
      margin-bottom: 20px;
      padding-left: 20px;
    }

    li {
      margin-bottom: 10px;
      color: #475569;
      font-size: 1.05rem;
      position: relative;
      list-style-type: disc;
    }

    .footer {
      text-align: center;
      padding: 40px 0;
      color: var(--gray);
      font-size: 0.9rem;
    }

    @media (max-width: 768px) {
      .main-content { padding: 30px 0; }
      .policy-card { padding: 25px; }
      .page-title { font-size: 2rem; }
    }
  </style>
</head>

<body>
  <!-- Google Tag Manager (noscript) -->
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N8NQFC4Z"
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  <!-- End Google Tag Manager (noscript) -->

  <header>
    <div class="container header-content">
      <a href="/" class="logo">
        <i class="fas fa-utensils"></i> <?php echo htmlspecialchars(SITE_NAME); ?>
      </a>
      <a href="/" class="back-btn">
        <i class="fas fa-arrow-left"></i> Back to Home
      </a>
    </div>
  </header>

  <main class="main-content container">
    <h1 class="page-title">Privacy Policy</h1>
    <p class="last-updated">Last Updated: <?php echo date('F j, Y'); ?></p>

    <div class="policy-card">
      <p>Welcome to <strong>GoBotad</strong>. We respect your privacy and are committed to protecting your personal data. This comprehensive Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website, use our mobile application, or interact with our food delivery services. Please read this privacy policy carefully. If you do not agree with the terms of this privacy policy, please do not access the site or use our services.</p>

      <h2 class="section-title"><i class="fas fa-database"></i> 1. Information We Collect</h2>
      <p>We collect information that you voluntarily provide to us when you register on the GoBotad platform, express an interest in obtaining information about us or our products and services, or otherwise contact us. The personal information that we collect depends on the context of your interactions with us and the choices you make.</p>
      <ul>
        <li><strong>Personal Details:</strong> Name, phone number, email address, and date of birth.</li>
        <li><strong>Location Data:</strong> Delivery addresses, live GPS location for tracking deliveries, and saved locations (like Home or Work).</li>
        <li><strong>Financial Information:</strong> Payment details, transaction history, and billing addresses. All payment processing is securely handled via trusted gateways like Razorpay, and we do not store full credit card numbers on our servers.</li>
        <li><strong>Usage Data:</strong> Information about how you use our website/app, including your browsing history on our platform, search queries, and order preferences.</li>
        <li><strong>Device Information:</strong> IP address, browser type, operating system, and device identifiers when you access our platform.</li>
      </ul>

      <h2 class="section-title"><i class="fas fa-bullseye"></i> 2. How We Use Your Information</h2>
      <p>Having accurate information about you permits us to provide you with a smooth, efficient, and customized experience. Specifically, we may use information collected about you via the platform to:</p>
      <ul>
        <li>Process and fulfill your food orders, including communicating with restaurants and delivery riders.</li>
        <li>Create and manage your personal account securely.</li>
        <li>Improve our services, website layout, and application functionality.</li>
        <li>Personalize your experience by offering tailored food recommendations and promotions.</li>
        <li>Contact you regarding order updates, customer support inquiries, and policy changes.</li>
        <li>Prevent fraudulent transactions, monitor against theft, and protect against criminal activity.</li>
        <li>Request feedback and contact you about your use of the GoBotad platform.</li>
      </ul>

      <h2 class="section-title"><i class="fas fa-share-nodes"></i> 3. Disclosure of Your Information</h2>
      <p>We may share information we have collected about you in certain situations. Your information may be disclosed as follows:</p>
      <ul>
        <li><strong>Restaurant Partners:</strong> We share your order details, name, and delivery address with the restaurant preparing your food.</li>
        <li><strong>Delivery Riders:</strong> We provide your name, phone number, and delivery location to the assigned delivery partner to ensure successful order fulfillment.</li>
        <li><strong>Third-Party Service Providers:</strong> We may share your information with third parties that perform services for us or on our behalf, including payment processing (e.g., Razorpay), data analysis, email delivery, hosting services, and customer service.</li>
        <li><strong>By Law or to Protect Rights:</strong> If we believe the release of information about you is necessary to respond to legal process, to investigate or remedy potential violations of our policies, or to protect the rights, property, and safety of others.</li>
      </ul>

      <h2 class="section-title"><i class="fas fa-cookie-bite"></i> 4. Cookies and Tracking Technologies</h2>
      <p>We may use cookies, web beacons, tracking pixels, and other tracking technologies to help customize our platform and improve your experience. When you access our website, your personal information is not collected through the use of tracking technology. Most browsers are set to accept cookies by default. You can remove or reject cookies, but be aware that such action could affect the availability and functionality of our platform.</p>

      <h2 class="section-title"><i class="fas fa-shield-halved"></i> 5. Data Security</h2>
      <p>We use administrative, technical, and physical security measures to help protect your personal information. While we have taken reasonable steps to secure the personal information you provide to us, please be aware that despite our efforts, no security measures are perfect or impenetrable, and no method of data transmission can be guaranteed against any interception or other type of misuse. Any information disclosed online is vulnerable to interception and misuse by unauthorized parties.</p>

      <h2 class="section-title"><i class="fas fa-user-gear"></i> 6. Your Rights and Choices</h2>
      <p>You have the right to access, correct, update, or request deletion of your personal data. You can manage your account settings directly within the app or website. If you wish to permanently delete your account, please contact our support team. You may also opt out of receiving promotional emails from us by following the unsubscribe instructions included in those emails.</p>

      <h2 class="section-title"><i class="fas fa-child"></i> 7. Children's Privacy</h2>
      <p>Our services are not intended for use by children under the age of 13. We do not knowingly solicit information from or market to children under the age of 13. If we learn that we have collected personal information from a child under age 13 without verification of parental consent, we will delete that information as quickly as possible.</p>

      <h2 class="section-title"><i class="fas fa-envelope"></i> 8. Contact Us</h2>
      <p>If you have any questions, comments, or concerns about this Privacy Policy or our data practices, please contact our Data Protection Officer at: <strong>gobotad@gmail.com</strong>. We will make every effort to resolve your concerns promptly and effectively.</p>
    </div>
  </main>

  <footer class="footer">
    <div class="container">
      &copy; <?php echo date('Y'); ?> <?php echo htmlspecialchars(SITE_NAME); ?>. All rights reserved.
    </div>
  </footer>

</body>
</html>
