<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: 'overview', title: '1. Overview' },
  { id: 'prohibited', title: '2. Prohibited Activities' },
  { id: 'network', title: '3. Network Abuse' },
  { id: 'resources', title: '4. Resource Limits and Fair Usage' },
  { id: 'content', title: '5. Content Standards' },
  { id: 'security', title: '6. Security' },
  { id: 'enforcement', title: '7. Enforcement' },
  { id: 'reporting', title: '8. Reporting Abuse' },
  { id: 'changes', title: '9. Changes to This Policy' },
  { id: 'contact', title: '10. Contact Information' },
]
</script>

<template>
  <Head title="Acceptable Use Policy | 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">Acceptable Use Policy</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">
                This Acceptable Use Policy ("AUP") governs the use of all services provided by {{ companyName }}
                ("EZSCALE," "we," "us," or "our"). This AUP is incorporated into and forms part of our
                <Link href="/terms-of-service" class="text-primary text-decoration-none font-weight-medium">Terms of Service</Link>.
                By using our Services, you agree to comply with this policy. Violations may result in suspension
                or termination of your account.
              </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. Overview -->
              <div id="overview" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">1. Overview</h2>
                <p class="text-body-1 mb-3">
                  EZSCALE provides hosting infrastructure to a wide range of customers. To ensure the security,
                  reliability, and performance of our network for all users, we require that all customers use
                  our Services responsibly and lawfully.
                </p>
                <p class="text-body-1">
                  This AUP applies to all users of our Services, including customers, their employees, contractors,
                  and any third parties who access our Services through a customer's account. Customers are
                  responsible for ensuring that all users of their account comply with this policy.
                </p>
              </div>

              <!-- 2. Prohibited Activities -->
              <div id="prohibited" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">2. Prohibited Activities</h2>
                <p class="text-body-1 mb-3">
                  The following activities are strictly prohibited on our network and infrastructure:
                </p>

                <h3 class="text-subtitle-1 font-weight-bold mb-2">a) Illegal Content and Activities</h3>
                <ul class="text-body-1 mb-4 ml-6">
                  <li class="mb-1">Hosting, storing, or distributing any content that violates local, state, national, or international law.</li>
                  <li class="mb-1">Child sexual abuse material (CSAM) in any form. Such content will be immediately reported to the National Center for Missing and Exploited Children (NCMEC) and law enforcement.</li>
                  <li class="mb-1">Facilitating or promoting illegal activities, including fraud, identity theft, or trafficking.</li>
                  <li class="mb-1">Hosting content that infringes on intellectual property rights (copyright, trademark, patent) without authorization.</li>
                </ul>

                <h3 class="text-subtitle-1 font-weight-bold mb-2">b) Spam and Unsolicited Communications</h3>
                <ul class="text-body-1 mb-4 ml-6">
                  <li class="mb-1">Sending unsolicited bulk email (spam), including commercial, political, or religious messages.</li>
                  <li class="mb-1">Operating open mail relays or open proxy servers.</li>
                  <li class="mb-1">Sending emails with forged headers or misleading subject lines.</li>
                  <li class="mb-1">Harvesting email addresses from websites or services without consent.</li>
                  <li class="mb-1">Violating the CAN-SPAM Act, GDPR, or other anti-spam legislation.</li>
                </ul>

                <h3 class="text-subtitle-1 font-weight-bold mb-2">c) Malware and Malicious Software</h3>
                <ul class="text-body-1 mb-4 ml-6">
                  <li class="mb-1">Hosting, distributing, or developing malware, viruses, trojans, ransomware, or other malicious software.</li>
                  <li class="mb-1">Operating phishing websites or pages designed to steal credentials.</li>
                  <li class="mb-1">Running command-and-control (C2) servers for botnets.</li>
                  <li class="mb-1">Hosting exploit kits or tools designed to compromise computer systems.</li>
                </ul>

                <h3 class="text-subtitle-1 font-weight-bold mb-2">d) DDoS and Network Attacks</h3>
                <ul class="text-body-1 mb-4 ml-6">
                  <li class="mb-1">Launching, facilitating, or participating in distributed denial-of-service (DDoS) attacks.</li>
                  <li class="mb-1">Operating DDoS-for-hire ("booter" or "stresser") services.</li>
                  <li class="mb-1">Conducting port scanning, vulnerability scanning, or penetration testing of systems you do not own or have written authorization to test.</li>
                  <li class="mb-1">IP spoofing or forging network packet headers.</li>
                </ul>

                <h3 class="text-subtitle-1 font-weight-bold mb-2">e) Cryptocurrency Mining</h3>
                <ul class="text-body-1 ml-6">
                  <li class="mb-1">Running cryptocurrency mining software on shared hosting, VPS, or any service without prior written approval from EZSCALE.</li>
                  <li class="mb-1">Mining operations on dedicated servers may be permitted with prior approval. Contact us for details.</li>
                  <li class="mb-1">Unauthorized mining will result in immediate service suspension.</li>
                </ul>
              </div>

              <!-- 3. Network Abuse -->
              <div id="network" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">3. Network Abuse</h2>
                <p class="text-body-1 mb-3">
                  The following network activities are prohibited:
                </p>
                <ul class="text-body-1 ml-6">
                  <li class="mb-1">Consuming excessive bandwidth that degrades the experience of other customers on shared infrastructure.</li>
                  <li class="mb-1">Running processes that cause sustained high CPU, memory, or I/O load on shared resources beyond your plan's allocation.</li>
                  <li class="mb-1">Operating public Tor exit nodes without prior written approval.</li>
                  <li class="mb-1">Operating open DNS resolvers, open SMTP relays, or other services commonly abused for amplification attacks.</li>
                  <li class="mb-1">Engaging in any activity that interferes with or disrupts the network, servers, or services of EZSCALE or third parties.</li>
                  <li class="mb-1">Circumventing or attempting to circumvent bandwidth limits, resource quotas, or other service restrictions.</li>
                </ul>
              </div>

              <!-- 4. Resource Limits and Fair Usage -->
              <div id="resources" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">4. Resource Limits and Fair Usage</h2>
                <p class="text-body-1 mb-3">
                  While we provide generous resource allocations, all services are subject to fair usage principles:
                </p>
                <ul class="text-body-1 mb-3 ml-6">
                  <li class="mb-1"><strong>Shared Hosting:</strong> Designed for websites and web applications. Not suitable for file storage, backup services, or high-computation workloads.</li>
                  <li class="mb-1"><strong>VPS Hosting:</strong> Resources are allocated as specified in your plan. Sustained usage at 100% of allocated resources is acceptable, but processes that negatively impact the host node may be throttled.</li>
                  <li class="mb-1"><strong>Dedicated Servers:</strong> Full use of allocated hardware resources is permitted, subject to the restrictions in this AUP.</li>
                  <li class="mb-1"><strong>Bandwidth:</strong> Bandwidth quotas are stated in your plan details. Overage charges or throttling may apply when limits are exceeded.</li>
                </ul>
                <p class="text-body-1">
                  If your usage significantly exceeds what is typical for your plan, we may contact you to discuss
                  upgrading to a more appropriate plan. We will always attempt to work with you before taking any
                  restrictive action.
                </p>
              </div>

              <!-- 5. Content Standards -->
              <div id="content" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">5. Content Standards</h2>
                <p class="text-body-1 mb-3">
                  You are responsible for all content hosted on your account. While we generally do not monitor
                  customer content, we reserve the right to remove or disable access to content that:
                </p>
                <ul class="text-body-1 ml-6">
                  <li class="mb-1">Violates any applicable law or regulation.</li>
                  <li class="mb-1">Infringes on the intellectual property rights of others.</li>
                  <li class="mb-1">Contains or distributes malware.</li>
                  <li class="mb-1">Is the subject of a valid DMCA takedown notice or court order.</li>
                  <li class="mb-1">Poses an immediate risk to our infrastructure, network, or other customers.</li>
                </ul>
              </div>

              <!-- 6. Security -->
              <div id="security" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">6. Security</h2>
                <p class="text-body-1 mb-3">
                  Customers are responsible for maintaining the security of their accounts and services:
                </p>
                <ul class="text-body-1 ml-6">
                  <li class="mb-1">Keep all software, including operating systems, CMS platforms, and plugins, up to date with security patches.</li>
                  <li class="mb-1">Use strong, unique passwords and enable two-factor authentication (2FA).</li>
                  <li class="mb-1">Configure firewalls and access controls appropriately.</li>
                  <li class="mb-1">Monitor your services for unauthorized access or suspicious activity.</li>
                  <li class="mb-1">Report security incidents to us promptly at <a href="mailto:abuse@ezscale.cloud" class="text-primary text-decoration-none font-weight-medium">abuse@ezscale.cloud</a>.</li>
                </ul>
              </div>

              <!-- 7. Enforcement -->
              <div id="enforcement" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">7. Enforcement</h2>
                <p class="text-body-1 mb-3">
                  We take a graduated approach to enforcement, though we reserve the right to take immediate action
                  for severe violations:
                </p>

                <VCard variant="outlined" class="mb-4">
                  <VTable>
                    <thead>
                      <tr>
                        <th class="text-subtitle-2 font-weight-bold">Step</th>
                        <th class="text-subtitle-2 font-weight-bold">Action</th>
                        <th class="text-subtitle-2 font-weight-bold">Description</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td>
                          <VChip color="warning" size="small" variant="tonal">1</VChip>
                        </td>
                        <td class="font-weight-medium">Warning</td>
                        <td>Written notification of the violation with a request to remedy the issue within a specified timeframe (typically 24-48 hours).</td>
                      </tr>
                      <tr>
                        <td>
                          <VChip color="error" size="small" variant="tonal">2</VChip>
                        </td>
                        <td class="font-weight-medium">Suspension</td>
                        <td>Temporary suspension of the affected service or account if the violation is not resolved or is repeated. You will be notified and given an opportunity to respond.</td>
                      </tr>
                      <tr>
                        <td>
                          <VChip color="error" size="small" variant="flat">3</VChip>
                        </td>
                        <td class="font-weight-medium">Termination</td>
                        <td>Permanent termination of the account without refund for severe or repeated violations. Your data will be retained for 30 days before permanent deletion.</td>
                      </tr>
                    </tbody>
                  </VTable>
                </VCard>

                <VAlert type="warning" variant="tonal" class="mb-0">
                  <strong>Immediate Action:</strong> For violations that pose an immediate threat to network integrity,
                  security, or legal compliance (e.g., DDoS attacks, malware distribution, CSAM), we may suspend
                  services immediately without prior notice.
                </VAlert>
              </div>

              <!-- 8. Reporting Abuse -->
              <div id="reporting" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">8. Reporting Abuse</h2>
                <p class="text-body-1 mb-3">
                  If you believe that an EZSCALE customer is violating this Acceptable Use Policy, please report it to us.
                  We take all abuse reports seriously and will investigate promptly.
                </p>
                <VCard variant="tonal" color="error" class="mb-3">
                  <VCardText>
                    <div class="d-flex align-center ga-3">
                      <VAvatar color="error" variant="flat" size="48">
                        <VIcon icon="tabler-alert-triangle" size="24" />
                      </VAvatar>
                      <div>
                        <div class="text-subtitle-1 font-weight-bold">Report Abuse</div>
                        <a href="mailto:abuse@ezscale.cloud" class="text-body-1 text-decoration-none" style="color: inherit;">abuse@ezscale.cloud</a>
                      </div>
                    </div>
                  </VCardText>
                </VCard>
                <p class="text-body-1">
                  When reporting abuse, please include as much detail as possible: IP addresses, timestamps,
                  log excerpts, email headers, or URLs. This helps us investigate and respond quickly.
                </p>
              </div>

              <!-- 9. Changes to This Policy -->
              <div id="changes" class="mb-8">
                <h2 class="text-h5 font-weight-bold mb-4">9. Changes to This Policy</h2>
                <p class="text-body-1">
                  We may update this Acceptable Use Policy from time to time. We will notify customers of material
                  changes by posting the updated policy on our website and updating the "Effective Date." Continued
                  use of our Services after changes take effect constitutes acceptance of the revised policy.
                </p>
              </div>

              <!-- 10. Contact Information -->
              <div id="contact">
                <h2 class="text-h5 font-weight-bold mb-4">10. Contact Information</h2>
                <p class="text-body-1 mb-3">
                  If you have questions about this Acceptable Use Policy, 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:abuse@ezscale.cloud" class="text-body-1 text-primary text-decoration-none">abuse@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>
