---
import BaseLayout from '../../layouts/BaseLayout.astro';
import Header from '../../components/Header.astro';
import Footer from '../../components/Footer.astro';
import { ui, languages, defaultLang } from '../../i18n/ui';

// Get language from the URL
export async function getStaticPaths() {
  return Object.keys(languages).map(lang => {
    return { params: { lang } };
  });
}

const { lang = defaultLang } = Astro.params;
const t = ui[lang as keyof typeof ui];
---

<BaseLayout>
  <Header />
  
  <!-- Hero Section -->
  <section class="relative pt-32 pb-12 overflow-hidden">
    <!-- Background elements -->
    <div class="absolute inset-0 -z-10">
      <div class="absolute inset-0 bg-gradient-to-b from-black-deep via-black-medium to-black-deep"></div>
      <div class="absolute inset-0 opacity-10 bg-[radial-gradient(circle_at_center,_var(--tw-gradient-stops))] from-silver-metallic/20 to-transparent"></div>
    </div>
    
    <!-- Content -->
    <div class="container mx-auto px-4 relative z-10">
      <h1 class="text-4xl md:text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-silver-metallic to-silver-light mb-6">
        Terms of Service
      </h1>
    </div>
  </section>

  <!-- Main Content Section -->
  <section class="relative py-12 px-4">
    <div class="absolute inset-0 bg-gradient-to-br from-black-deep to-black-medium"></div>
    
    <div class="max-w-4xl mx-auto relative z-10">
      <div class="bg-gradient-to-br from-black-deep/90 to-black-medium/90 backdrop-blur-sm rounded-2xl border border-silver-dark/20 shadow-xl overflow-hidden">
        <div class="p-8 md:p-10">
          <div class="prose prose-invert max-w-none text-silver-light/90">
            <p class="mb-6">Last updated: {new Date().toISOString().split('T')[0]}</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">1. Introduction</h2>
            <p class="mb-4">These Terms of Service ("Terms") govern your access to and use of the website and services provided by JPM Security & Services ("we," "our," or "us").</p>
            <p class="mb-6">By accessing or using our services, you agree to be bound by these Terms. If you do not agree to these Terms, you should not access or use our services.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">2. Service Description</h2>
            <p class="mb-6">JPM Security & Services provides security, concierge, and food services as described on our website. Our services may include, but are not limited to, security personnel, event management, hospitality services, and related consultancy.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">3. Eligibility</h2>
            <p class="mb-6">To use our services, you must be at least 18 years old and have the legal capacity to enter into binding contracts. If you are accessing or using our services on behalf of a company or other legal entity, you represent that you have the authority to bind such entity to these Terms.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">4. User Accounts</h2>
            <p class="mb-4">When you create an account with us, you must provide accurate, complete, and current information at all times. Failure to do so constitutes a breach of the Terms, which may result in immediate termination of your account.</p>
            <p class="mb-6">You are responsible for safeguarding the password that you use to access our services and for any activities or actions under your account. We encourage you to use "strong" passwords (passwords that use a combination of upper and lower case letters, numbers, and symbols) with your account.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">5. User Conduct</h2>
            <p class="mb-4">You agree not to engage in any of the following prohibited activities:</p>
            <ul class="list-disc pl-6 mb-6 space-y-2">
              <li>Using our services for any illegal purpose or in violation of any local, state, national, or international law</li>
              <li>Harassing, threatening, or intimidating any person or entity</li>
              <li>Impersonating any person or entity, or falsely stating or otherwise misrepresenting your affiliation with a person or entity</li>
              <li>Interfering with or disrupting the services or servers or networks connected to the services</li>
              <li>Attempting to gain unauthorized access to any portion of the services or any other systems or networks connected to the services</li>
            </ul>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">6. Intellectual Property Rights</h2>
            <p class="mb-4">The content on our website, including text, graphics, logos, images, and software, is the property of JPM Security & Services or its licensors and is protected by copyright, trademark, and other intellectual property laws.</p>
            <p class="mb-6">You may not reproduce, distribute, modify, create derivative works of, publicly display, publicly perform, republish, download, store, or transmit any of the material on our website, except as permitted by law or with our prior written consent.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">7. Content Standards</h2>
            <p class="mb-6">Any content you submit to our website or services must comply with all applicable laws and regulations and must not infringe on any third party's rights. We reserve the right to remove or refuse to display any content that we believe violates the Terms or that may expose us or other users to any harm or liability.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">8. Service Modifications</h2>
            <p class="mb-6">We reserve the right to modify, suspend, or discontinue any part of our services at any time, with or without notice. We shall not be liable to you or any third party for any modification, suspension, or discontinuance of our services.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">9. Fees and Payment</h2>
            <p class="mb-4">If you engage our services, you agree to pay all fees associated with such services. All fees are non-refundable unless otherwise specified in writing.</p>
            <p class="mb-6">We reserve the right to change our fees at any time, and such changes will be posted on our website and will apply to any services provided after the date of the change.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">10. Termination</h2>
            <p class="mb-6">We may terminate or suspend your access to our services immediately, without prior notice or liability, for any reason whatsoever, including, without limitation, if you breach the Terms. Upon termination, your right to use our services will immediately cease.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">11. Disclaimer of Warranties</h2>
            <p class="mb-6">Our services are provided on an "as is" and "as available" basis. We make no warranties, expressed or implied, regarding the operation of our services or the information, content, or materials included therein. To the fullest extent permitted by law, we disclaim all warranties, including but not limited to, implied warranties of merchantability and fitness for a particular purpose.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">12. Limitation of Liability</h2>
            <p class="mb-6">To the maximum extent permitted by law, in no event shall we be liable for any damages whatsoever, including but not limited to, direct, indirect, special, incidental, or consequential damages, arising out of or in connection with the use or inability to use our services or any content provided on or through our services, even if we have been advised of the possibility of such damages.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">13. Indemnification</h2>
            <p class="mb-6">You agree to indemnify, defend, and hold harmless JPM Security & Services, its officers, directors, employees, agents, licensors, and suppliers from and against all losses, expenses, damages, and costs, including reasonable attorneys' fees, resulting from any violation of these Terms or any activity related to your account (including negligent or wrongful conduct) by you or any other person accessing our services using your account.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">14. Governing Law</h2>
            <p class="mb-6">These Terms shall be governed by and construed in accordance with the laws of [Your Country], without regard to its conflict of law provisions. Our failure to enforce any right or provision of these Terms will not be considered a waiver of those rights.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">15. Dispute Resolution</h2>
            <p class="mb-6">Any dispute arising out of or relating to these Terms, or the breach thereof, shall be settled by arbitration administered by [Arbitration Body] in accordance with its rules, and judgment on the award rendered by the arbitrator(s) may be entered in any court having jurisdiction thereof.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">16. Severability</h2>
            <p class="mb-6">If any provision of these Terms is held to be invalid or unenforceable by a court, the remaining provisions of these Terms will remain in effect.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">17. Changes to Terms</h2>
            <p class="mb-6">We reserve the right, at our sole discretion, to modify or replace these Terms at any time. We will provide notice of any changes by posting the new Terms on our website. Your continued use of our services after any such changes constitutes your acceptance of the new Terms.</p>
            
            <h2 class="text-2xl text-silver-metallic font-semibold mb-4">18. Contact Information</h2>
            <p class="mb-6">If you have any questions about these Terms, please contact us at:</p>
            <p class="mb-2">JPM Security & Services</p>
            <p class="mb-2">Email: legal@jpmsecurityservices.com</p>
            <p class="mb-6">Phone: [Your phone number]</p>
          </div>
        </div>
      </div>
    </div>
  </section>

  <Footer />
</BaseLayout> 