<?php
require_once 'includes/functions.php';
initSession();
require_once 'config/config.php';
$seo = getSEO('terms');
?>
<!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/terms" />
  
  <!-- Open Graph / Facebook -->
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://gobotad.com/terms">
  <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/terms">
  <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 Terms & Conditions -->
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "Does GoBotad prepare or cook the food?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "No, GoBotad operates purely as a technology platform connecting customers with independent restaurant partners and delivery riders. We facilitate the ordering, payment, and delivery logistics but do not prepare or cook any food."
        }
      },
      {
        "@type": "Question",
        "name": "Are delivery time estimates guaranteed?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Delivery times displayed on the platform are estimates and can vary based on live conditions such as traffic, weather, and restaurant preparation times. GoBotad is not liable for delayed delivery outside our reasonable control."
        }
      },
      {
        "@type": "Question",
        "name": "Am I responsible for keeping my account details secure?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Yes, you are fully responsible for safeguarding the credentials you use to access your GoBotad account and for all activities carried out under your account."
        }
      }
    ]
  }
  </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 { 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 { 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">Terms & Conditions</h1>
    <p class="last-updated">Last Updated: <?php echo date('F j, Y'); ?></p>
    <div class="policy-card">
      <p>Welcome to <strong>GoBotad</strong>. These Terms and Conditions govern your use of our website, mobile application, and the food delivery services we provide. By accessing or using the GoBotad platform, you agree to be bound by these terms. If you disagree with any part of the terms, then you may not access the service.</p>

      <h2 class="section-title"><i class="fas fa-bell-concierge"></i> 1. Use of Services</h2>
      <p>GoBotad operates as a technology platform connecting users with independent restaurant partners and delivery riders. We do not prepare or cook the food ourselves; rather, we facilitate the ordering and delivery process. You agree to use the platform only for lawful purposes and in a way that does not infringe the rights of, restrict, or inhibit anyone else's use and enjoyment of GoBotad.</p>

      <h2 class="section-title"><i class="fas fa-user-check"></i> 2. User Accounts and Responsibility</h2>
      <ul>
        <li><strong>Account Creation:</strong> You must create an account to place orders. You agree to provide accurate, current, and complete information during the registration process.</li>
        <li><strong>Account Security:</strong> You are responsible for safeguarding the password that you use to access the service and for any activities or actions under your password. You must notify us immediately upon becoming aware of any breach of security or unauthorized use of your account.</li>
        <li><strong>Prohibited Conduct:</strong> You agree not to use the platform for any fraudulent activity, to post offensive or inappropriate content in reviews, or to abuse the promotional codes and referral systems.</li>
      </ul>

      <h2 class="section-title"><i class="fas fa-credit-card"></i> 3. Ordering and Payments</h2>
      <p>All prices listed on the platform are determined by the respective restaurant partners and are subject to change without notice. When you place an order, you agree to pay all charges incurred, including the food price, taxes, delivery fees, and platform fees. All payments are processed securely via third-party gateways (e.g., Razorpay). We reserve the right to cancel any order if we suspect fraudulent activity.</p>

      <h2 class="section-title"><i class="fas fa-clipboard-check"></i> 4. Order Acceptance and Fulfillment</h2>
      <p>An order placed on GoBotad is an offer to purchase. The contract is formed only when the restaurant partner accepts the order. We reserve the right to refuse or cancel any order at any time for reasons including but not limited to: product availability, errors in the description or price, or service unavailability in your area.</p>

      <h2 class="section-title"><i class="fas fa-motorcycle"></i> 5. Delivery Logistics</h2>
      <p>Delivery times displayed on the platform are estimates and may vary based on traffic, weather, and restaurant preparation times. While we strive for timely deliveries, GoBotad is not liable for delays outside of our control. Users must ensure that someone is available at the delivery address to receive the order.</p>

      <h2 class="section-title"><i class="fas fa-copyright"></i> 6. Intellectual Property</h2>
      <p>The GoBotad platform and its original content (excluding content provided by users and restaurants), features, and functionality are and will remain the exclusive property of GoBotad and its licensors. Our trademarks and trade dress may not be used in connection with any product or service without our prior written consent.</p>

      <h2 class="section-title"><i class="fas fa-scale-balanced"></i> 7. Limitation of Liability</h2>
      <p>In no event shall GoBotad, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential, or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from your access to or use of or inability to access or use the service.</p>

      <h2 class="section-title"><i class="fas fa-clock-rotate-left"></i> 8. Modifications to Terms</h2>
      <p>We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material, we will try to provide at least 30 days' notice prior to any new terms taking effect. By continuing to access or use our service after those revisions become effective, you agree to be bound by the revised terms.</p>

      <h2 class="section-title"><i class="fas fa-envelope"></i> 9. Contact Information</h2>
      <p>If you have any questions about these Terms and Conditions, please contact us at: <strong>gobotad@gmail.com</strong>.</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>
