<script lang="ts" setup>
import { Head, Link } from '@inertiajs/vue3'
import MarketingLayout from '@/Layouts/MarketingLayout.vue'

defineOptions({ layout: MarketingLayout })

const effectiveDate = 'March 16, 2026'
const companyName = 'EZSCALE LLC'

interface Section {
  id: string
  title: string
}

const sections: Section[] = [
  { id: 'acceptance', title: '1. Acceptance of Terms' },
  { id: 'services', title: '2. Service Description' },
  { id: 'account', title: '3. Account Registration and Security' },
  { id: 'payment', title: '4. Payment Terms' },
  { id: 'refund', title: '5. Refund Policy' },
  { id: 'acceptable-use', title: '6. Acceptable Use' },
  { id: 'sla', title: '7. Service Level Agreement' },
  { id: 'ip', title: '8. Intellectual Property' },
  { id: 'termination', title: '9. Termination' },
  { id: 'disclaimer', title: '10. Disclaimer of Warranties' },
  { id: 'liability', title: '11. Limitation of Liability' },
  { id: 'indemnification', title: '12. Indemnification' },
  { id: 'governing-law', title: '13. Governing Law' },
  { id: 'changes', title: '14. Changes to Terms' },
  { id: 'contact', title: '15. Contact Information' },
]
</script>

<template>
  <Head title="Terms of Service | EZSCALE" />
  <div>
    <VContainer class="py-16">
      <!-- Header -->
      <VRow justify="center">
        <VCol cols="12" md="10" lg="8">
          <div class="text-center mb-12">
            <h1 class="text-h3 font-weight-bold mb-3">Terms of Service</h1>
            <p class="text-body-1 text-medium-emphasis">
              Effective Date: {{ effectiveDate }}
            </p>
          </div>

          <VCard variant="outlined">
            <VCardText class="pa-6 pa-md-10">
              <!-- Introduction -->
              <p class="text-body-1 mb-6">
                Welcome to {{ companyName }} ("EZSCALE," "we," "us," or "our"). These Terms of Service ("Terms")
                govern your access to and use of our website, products, and services, including but not limited to
                virtual private servers (VPS), dedicated servers, web hosting, and related services (collectively,
                the "Services"). By accessing or using our Services, you agree to be bound by these Terms.
              </p>

              <!-- Table of Contents -->
              <VCard variant="tonal" color="primary" class="mb-8">
                <VCardText>
                  <h2 class="text-h6 font-weight-bold mb-3">Table of Contents</h2>
                  <div class="d-flex flex-column ga-1">
                    <a
                      v-for="section in sections"
                      :key="section.id"
                      :href="`#${section.id}`"
                      class="text-body-2 text-primary text-decoration-none"
                    >
                      {{ section.title }}
                    </a>
                  </div>
                </VCardText>
              </VCard>

              <!-- 1. Acceptance of Terms -->
              <div id="acceptance" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">1. Acceptance of Terms</h2>
                <p class="text-body-1 mb-3">
                  By creating an account, placing an order, or otherwise using any of our Services, you acknowledge
                  that you have read, understood, and agree to be bound by these Terms, as well as our
                  <Link href="/privacy-policy" class="text-primary text-decoration-none font-weight-medium">Privacy Policy</Link>,
                  <Link href="/acceptable-use" class="text-primary text-decoration-none font-weight-medium">Acceptable Use Policy</Link>, and
                  <Link href="/sla" class="text-primary text-decoration-none font-weight-medium">Service Level Agreement</Link>.
                </p>
                <p class="text-body-1 mb-3">
                  If you are using the Services on behalf of an organization, you represent and warrant that you have
                  the authority to bind that organization to these Terms.
                </p>
                <p class="text-body-1">
                  If you do not agree to these Terms, you must not access or use our Services.
                </p>
              </div>

              <!-- 2. Service Description -->
              <div id="services" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">2. Service Description</h2>
                <p class="text-body-1 mb-3">
                  EZSCALE provides cloud infrastructure and hosting services, including:
                </p>
                <ul class="text-body-1 mb-3 ml-6">
                  <li class="mb-1"><strong>Virtual Private Servers (VPS):</strong> Virtualized server environments with dedicated resources, root access, and full administrative control.</li>
                  <li class="mb-1"><strong>Dedicated Servers:</strong> Bare-metal servers with exclusive hardware resources and full administrative access.</li>
                  <li class="mb-1"><strong>Web Hosting:</strong> Shared and managed hosting plans with cPanel/control panel access for websites and web applications.</li>
                  <li class="mb-1"><strong>MySQL Hosting:</strong> Managed MySQL database hosting with automated backups and high availability.</li>
                  <li class="mb-1"><strong>Game Servers:</strong> Managed game server hosting with one-click deployment and mod support.</li>
                </ul>
                <p class="text-body-1">
                  The specific features, resources, and limitations of each service are described on our website and
                  in the applicable service plan documentation. We reserve the right to modify, update, or discontinue
                  any Service at any time with reasonable notice.
                </p>
              </div>

              <!-- 3. Account Registration and Security -->
              <div id="account" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">3. Account Registration and Security</h2>
                <p class="text-body-1 mb-3">
                  To use our Services, you must create an account. You agree to:
                </p>
                <ul class="text-body-1 mb-3 ml-6">
                  <li class="mb-1">Provide accurate, current, and complete information during registration.</li>
                  <li class="mb-1">Maintain and promptly update your account information.</li>
                  <li class="mb-1">Keep your password and account credentials secure and confidential.</li>
                  <li class="mb-1">Enable two-factor authentication (2FA) when available for enhanced security.</li>
                  <li class="mb-1">Notify us immediately of any unauthorized use of your account.</li>
                  <li class="mb-1">Accept responsibility for all activities that occur under your account.</li>
                </ul>
                <p class="text-body-1">
                  You must be at least 18 years of age to create an account and use our Services. We reserve the right
                  to suspend or terminate accounts that contain false or misleading information.
                </p>
              </div>

              <!-- 4. Payment Terms -->
              <div id="payment" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">4. Payment Terms</h2>
                <p class="text-body-1 mb-3">
                  All Services are provided on a subscription basis. By subscribing to a Service, you agree to the following:
                </p>
                <ul class="text-body-1 mb-3 ml-6">
                  <li class="mb-1"><strong>Billing Cycle:</strong> Services are billed on a monthly, quarterly, semi-annual, or annual basis, depending on the plan selected. Billing begins on the date of purchase.</li>
                  <li class="mb-1"><strong>Auto-Renewal:</strong> Subscriptions automatically renew at the end of each billing cycle unless cancelled before the renewal date. You will be charged the then-current rate for your plan.</li>
                  <li class="mb-1"><strong>Payment Methods:</strong> We accept credit cards (Visa, Mastercard, American Express) and PayPal. Payment is processed through our secure payment partners, Stripe and PayPal.</li>
                  <li class="mb-1"><strong>Taxes:</strong> Prices displayed may not include applicable taxes. You are responsible for any sales tax, VAT, or other taxes imposed by your jurisdiction.</li>
                  <li class="mb-1"><strong>Failed Payments:</strong> If a payment fails, we will attempt to process the payment again. After multiple failed attempts, your service may be suspended or terminated in accordance with our dunning procedures.</li>
                  <li class="mb-1"><strong>Price Changes:</strong> We may change our pricing with at least 30 days' notice. Existing subscriptions will be honored at their current rate until the end of the current billing cycle.</li>
                </ul>
                <p class="text-body-1">
                  All fees are non-refundable except as expressly set forth in Section 5 (Refund Policy).
                </p>
              </div>

              <!-- 5. Refund Policy -->
              <div id="refund" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">5. Refund Policy</h2>
                <p class="text-body-1 mb-3">
                  We want you to be satisfied with our Services. The following refund terms apply:
                </p>
                <ul class="text-body-1 mb-3 ml-6">
                  <li class="mb-1"><strong>VPS Hosting:</strong> 14-day money-back guarantee from the date of initial purchase. Refund requests must be submitted within 14 days of the original order.</li>
                  <li class="mb-1"><strong>Web Hosting:</strong> 14-day money-back guarantee from the date of initial purchase. Refund requests must be submitted within 14 days of the original order.</li>
                  <li class="mb-1"><strong>Dedicated Servers:</strong> Due to the custom nature of dedicated server provisioning, refunds are evaluated on a case-by-case basis. A prorated refund may be issued within the first 7 days.</li>
                  <li class="mb-1"><strong>Domain Registrations:</strong> Domain registrations are non-refundable.</li>
                  <li class="mb-1"><strong>Add-ons and Extras:</strong> Additional services such as SSL certificates, backups, and IP addresses are non-refundable once provisioned.</li>
                </ul>
                <p class="text-body-1">
                  Refunds are issued to the original payment method and may take 5-10 business days to process.
                  To request a refund, contact us at
                  <a href="mailto:billing@ezscale.cloud" class="text-primary text-decoration-none font-weight-medium">billing@ezscale.cloud</a>.
                </p>
              </div>

              <!-- 6. Acceptable Use -->
              <div id="acceptable-use" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">6. Acceptable Use</h2>
                <p class="text-body-1 mb-3">
                  Your use of the Services is subject to our
                  <Link href="/acceptable-use" class="text-primary text-decoration-none font-weight-medium">Acceptable Use Policy</Link>.
                  You agree not to use our Services for any purpose that is unlawful or prohibited by these Terms. Prohibited uses include, but are not limited to:
                </p>
                <ul class="text-body-1 mb-3 ml-6">
                  <li class="mb-1">Sending unsolicited bulk email (spam) or operating mail relays.</li>
                  <li class="mb-1">Hosting or distributing illegal content, malware, or phishing sites.</li>
                  <li class="mb-1">Launching or participating in denial-of-service (DDoS) attacks.</li>
                  <li class="mb-1">Engaging in any activity that disrupts or interferes with our network or other customers' services.</li>
                  <li class="mb-1">Mining cryptocurrency without prior written approval.</li>
                  <li class="mb-1">Violating any applicable local, state, national, or international law.</li>
                </ul>
                <p class="text-body-1">
                  Violations may result in immediate suspension or termination of your account without refund.
                </p>
              </div>

              <!-- 7. Service Level Agreement -->
              <div id="sla" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">7. Service Level Agreement</h2>
                <p class="text-body-1 mb-3">
                  Our commitment to uptime and service reliability is detailed in our
                  <Link href="/sla" class="text-primary text-decoration-none font-weight-medium">Service Level Agreement (SLA)</Link>.
                  The SLA outlines our uptime guarantees, credit policies, and the process for reporting and claiming service disruptions.
                </p>
                <p class="text-body-1">
                  The SLA is incorporated into these Terms by reference and forms part of your agreement with us.
                </p>
              </div>

              <!-- 8. Intellectual Property -->
              <div id="ip" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">8. Intellectual Property</h2>
                <p class="text-body-1 mb-3">
                  All content, trademarks, logos, and intellectual property associated with the EZSCALE brand and
                  Services are owned by {{ companyName }}. You may not use, reproduce, or distribute any of our
                  intellectual property without prior written consent.
                </p>
                <p class="text-body-1">
                  You retain all rights to the content, data, and applications you host on our infrastructure.
                  We do not claim ownership of your content.
                </p>
              </div>

              <!-- 9. Termination -->
              <div id="termination" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">9. Termination</h2>
                <p class="text-body-1 mb-3">
                  Either party may terminate services as follows:
                </p>
                <ul class="text-body-1 mb-3 ml-6">
                  <li class="mb-1"><strong>By You:</strong> You may cancel your subscription at any time through your account dashboard or by contacting support. Cancellation takes effect at the end of your current billing cycle. No partial refunds are issued for unused time unless covered by our refund policy.</li>
                  <li class="mb-1"><strong>By Us:</strong> We may suspend or terminate your account immediately if you violate these Terms, our Acceptable Use Policy, or fail to pay outstanding balances. We will make reasonable efforts to notify you before termination except in cases of severe abuse.</li>
                </ul>
                <p class="text-body-1 mb-3">
                  Upon termination, your data will be retained for 30 days, after which it will be permanently deleted.
                  You are responsible for exporting your data prior to account termination.
                </p>
              </div>

              <!-- 10. Disclaimer of Warranties -->
              <div id="disclaimer" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">10. Disclaimer of Warranties</h2>
                <p class="text-body-1">
                  THE SERVICES ARE PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS
                  OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
                  PURPOSE, AND NON-INFRINGEMENT. EZSCALE DOES NOT WARRANT THAT THE SERVICES WILL BE UNINTERRUPTED,
                  ERROR-FREE, OR COMPLETELY SECURE. YOUR USE OF THE SERVICES IS AT YOUR SOLE RISK.
                </p>
              </div>

              <!-- 11. Limitation of Liability -->
              <div id="liability" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">11. Limitation of Liability</h2>
                <p class="text-body-1 mb-3">
                  TO THE MAXIMUM EXTENT PERMITTED BY LAW, {{ companyName }} AND ITS OFFICERS, DIRECTORS, EMPLOYEES,
                  AND AGENTS SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE
                  DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, DATA, USE, OR GOODWILL, ARISING OUT OF OR
                  RELATED TO YOUR USE OF THE SERVICES.
                </p>
                <p class="text-body-1">
                  OUR TOTAL LIABILITY FOR ANY CLAIMS ARISING UNDER THESE TERMS SHALL NOT EXCEED THE AMOUNT YOU PAID
                  TO US FOR THE SERVICES DURING THE TWELVE (12) MONTHS PRECEDING THE CLAIM.
                </p>
              </div>

              <!-- 12. Indemnification -->
              <div id="indemnification" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">12. Indemnification</h2>
                <p class="text-body-1">
                  You agree to indemnify, defend, and hold harmless {{ companyName }}, its affiliates, officers,
                  directors, employees, and agents from and against any claims, liabilities, damages, losses, and
                  expenses (including reasonable attorney's fees) arising out of or related to your use of the
                  Services, your violation of these Terms, or your violation of any rights of a third party.
                </p>
              </div>

              <!-- 13. Governing Law -->
              <div id="governing-law" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">13. Governing Law</h2>
                <p class="text-body-1 mb-3">
                  These Terms shall be governed by and construed in accordance with the laws of the State of Georgia,
                  United States, without regard to its conflict of law provisions.
                </p>
                <p class="text-body-1">
                  Any disputes arising under or in connection with these Terms shall be subject to the exclusive
                  jurisdiction of the state and federal courts located in the State of Georgia. You consent to the
                  personal jurisdiction and venue of such courts.
                </p>
              </div>

              <!-- 14. Changes to Terms -->
              <div id="changes" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">14. Changes to Terms</h2>
                <p class="text-body-1 mb-3">
                  We reserve the right to modify these Terms at any time. We will notify you of material changes by
                  posting the updated Terms on our website and updating the "Effective Date" at the top of this page.
                  We may also send notice via email for significant changes.
                </p>
                <p class="text-body-1">
                  Your continued use of the Services after any changes constitutes your acceptance of the revised Terms.
                  If you do not agree to the revised Terms, you must stop using the Services.
                </p>
              </div>

              <!-- 15. Contact Information -->
              <div id="contact">
                <h2 class="text-h5 font-weight-bold mb-4">15. Contact Information</h2>
                <p class="text-body-1 mb-3">
                  If you have any questions about these Terms of Service, please contact us:
                </p>
                <VCard variant="tonal" class="mb-0">
                  <VCardText>
                    <div class="d-flex flex-column ga-2">
                      <div class="d-flex align-center ga-2">
                        <VIcon icon="tabler-building" size="20" class="text-medium-emphasis" />
                        <span class="text-body-1">{{ companyName }}</span>
                      </div>
                      <div class="d-flex align-center ga-2">
                        <VIcon icon="tabler-mail" size="20" class="text-medium-emphasis" />
                        <a href="mailto:legal@ezscale.cloud" class="text-body-1 text-primary text-decoration-none">legal@ezscale.cloud</a>
                      </div>
                      <div class="d-flex align-center ga-2">
                        <VIcon icon="tabler-world" size="20" class="text-medium-emphasis" />
                        <a href="/" class="text-body-1 text-primary text-decoration-none">ezscale.cloud</a>
                      </div>
                    </div>
                  </VCardText>
                </VCard>
              </div>
            </VCardText>
          </VCard>
        </VCol>
      </VRow>
    </VContainer>
  </div>
</template>
