---
import Layout from '../layouts/Layout.astro';
import SimpleHeader from '../components/SimpleHeader.astro';
---

<Layout title="Terms of Service - Black Canyon Tickets">
  <SimpleHeader />
  <main class="min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50">
    <!-- Hero Section -->
    <div class="relative overflow-hidden py-16">
      <div class="absolute inset-0 bg-gradient-to-r from-blue-600/5 to-indigo-600/5"></div>
      <div class="relative max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
        <div class="inline-flex items-center px-4 py-2 rounded-full bg-blue-100 text-blue-700 text-sm font-medium mb-6">
          <svg class="w-4 h-4 mr-2" fill="currentColor" viewBox="0 0 20 20">
            <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path>
          </svg>
          Legal Agreement
        </div>
        <h1 class="text-4xl sm:text-5xl font-bold text-gray-900 mb-4">
          Terms of Service
        </h1>
        <p class="text-xl text-gray-600 mb-2">
          Our commitment to transparent and fair service
        </p>
        <p class="text-sm text-gray-500">
          Last updated: {new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })}
        </p>
      </div>
    </div>

    <!-- Content Section -->
    <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 pb-16">
      <div class="bg-white rounded-2xl shadow-xl overflow-hidden">
        <!-- Table of Contents -->
        <div class="bg-gray-50 border-b border-gray-200 p-6">
          <h3 class="text-lg font-semibold text-gray-900 mb-4">Table of Contents</h3>
          <div class="grid grid-cols-1 md:grid-cols-2 gap-2 text-sm">
            <a href="#acceptance" class="text-blue-600 hover:text-blue-800 hover:underline">1. Acceptance of Terms</a>
            <a href="#service" class="text-blue-600 hover:text-blue-800 hover:underline">2. Description of Service</a>
            <a href="#accounts" class="text-blue-600 hover:text-blue-800 hover:underline">3. User Accounts</a>
            <a href="#organizer" class="text-blue-600 hover:text-blue-800 hover:underline">4. Event Organizer Responsibilities</a>
            <a href="#payment" class="text-blue-600 hover:text-blue-800 hover:underline">5. Payment Terms</a>
            <a href="#refunds" class="text-blue-600 hover:text-blue-800 hover:underline">6. Refunds and Cancellations</a>
            <a href="#prohibited" class="text-blue-600 hover:text-blue-800 hover:underline">7. Prohibited Uses</a>
            <a href="#liability" class="text-blue-600 hover:text-blue-800 hover:underline">8. Limitation of Liability</a>
            <a href="#indemnification" class="text-blue-600 hover:text-blue-800 hover:underline">9. Indemnification</a>
            <a href="#termination" class="text-blue-600 hover:text-blue-800 hover:underline">10. Termination</a>
            <a href="#changes" class="text-blue-600 hover:text-blue-800 hover:underline">11. Changes to Terms</a>
            <a href="#contact" class="text-blue-600 hover:text-blue-800 hover:underline">12. Contact Information</a>
          </div>
        </div>

        <div class="p-8">
          <div class="prose prose-blue prose-lg max-w-none">
          <h2 id="acceptance">1. Acceptance of Terms</h2>
          <p>
            By accessing and using the ticketing platform operated by San Juan Events dba Black Canyon Tickets ("we," "us," "our," or "the Service"), you accept and agree to be bound by the terms and provisions of this agreement. If you do not agree to abide by these terms, please do not use this service.
          </p>

          <h2 id="service">2. Description of Service</h2>
          <p>
            San Juan Events dba Black Canyon Tickets operates a self-service ticketing platform designed for upscale venues. We provide event organizers with tools to create, manage, and sell tickets for their events, including:
          </p>
          <ul>
            <li>Event creation and management</li>
            <li>Ticket sales and processing</li>
            <li>QR code generation and scanning</li>
            <li>Payment processing through Stripe</li>
            <li>Analytics and reporting</li>
          </ul>

          <h2 id="accounts">3. User Accounts</h2>
          <p>
            To use certain features of the Service, you must register for an account. You are responsible for maintaining the confidentiality of your account credentials and for all activities that occur under your account. You must immediately notify us of any unauthorized access to your account.
          </p>

          <h2 id="organizer">4. Event Organizer Responsibilities</h2>
          <p>As an event organizer using our platform, you agree to:</p>
          <ul>
            <li>Provide accurate and complete information about your events</li>
            <li>Honor all ticket sales and provide the advertised services</li>
            <li>Comply with all applicable laws and regulations</li>
            <li>Respond to customer inquiries in a timely manner</li>
            <li>Maintain appropriate licenses and permits for your events</li>
          </ul>

          <h2 id="payment">5. Payment Terms</h2>
          <p>
            Payment processing is handled through Stripe Connect. By using our Service, you agree to Stripe's terms of service. We charge a platform fee on each ticket sold, which will be clearly disclosed during the setup process. Platform fees are automatically deducted from each transaction before funds are transferred to event organizers.
          </p>

          <h2 id="refunds">6. Refunds and Cancellations</h2>
          <p>
            Refund policies are set by individual event organizers. San Juan Events dba Black Canyon Tickets does not guarantee refunds for any events. Disputes regarding refunds should be resolved directly between the ticket purchaser and the event organizer. We may facilitate communication but are not responsible for refund decisions.
          </p>

          <h2 id="prohibited">7. Prohibited Uses</h2>
          <p>You may not use our Service for:</p>
          <ul>
            <li>Illegal activities or events</li>
            <li>Fraudulent or deceptive practices</li>
            <li>Harassment or harm to others</li>
            <li>Violating intellectual property rights</li>
            <li>Spam or unsolicited communications</li>
          </ul>

          <h2 id="liability">8. Limitation of Liability</h2>
          <p>
            San Juan Events dba Black Canyon Tickets shall not be liable for any indirect, incidental, special, or consequential damages arising from your use of the Service. Our total liability is limited to the platform fees paid for the Service in the twelve months preceding the claim.
          </p>

          <h2 id="indemnification">9. Indemnification</h2>
          <p>
            You agree to indemnify and hold harmless San Juan Events dba Black Canyon Tickets, its officers, directors, employees, and agents from any claims, damages, losses, or expenses (including legal fees) arising from your use of the Service, violation of these terms, or infringement of any rights of third parties.
          </p>

          <h2 id="termination">10. Termination</h2>
          <p>
            We may terminate or suspend your account at any time for violation of these terms, with or without notice. Upon termination, your right to use the Service will cease immediately. All provisions that by their nature should survive termination shall survive, including liability limitations and indemnification provisions.
          </p>

          <h2 id="changes">11. Changes to Terms</h2>
          <p>
            We reserve the right to modify these terms at any time. Material changes will be posted on this page with an updated date and, where required by law, we will provide additional notice. Continued use of the Service after changes constitutes acceptance of the new terms.
          </p>

          <h2 id="contact">12. Contact Information</h2>
          <p>
            If you have questions about these Terms of Service, please contact us at:
          </p>
          <div class="bg-blue-50 border border-blue-200 rounded-lg p-4 mt-4">
            <div class="flex items-center mb-2">
              <svg class="w-5 h-5 text-blue-600 mr-2" fill="currentColor" viewBox="0 0 20 20">
                <path d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"></path>
                <path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"></path>
              </svg>
              <strong class="text-blue-900">Email:</strong>
            </div>
            <p class="text-blue-800 ml-7">support@blackcanyontickets.com</p>
            
            <div class="flex items-center mt-3 mb-2">
              <svg class="w-5 h-5 text-blue-600 mr-2" fill="currentColor" viewBox="0 0 20 20">
                <path fill-rule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" clip-rule="evenodd"></path>
              </svg>
              <strong class="text-blue-900">Business Entity:</strong>
            </div>
            <p class="text-blue-800 ml-7">San Juan Events dba Black Canyon Tickets<br>Montrose, Colorado</p>
          </div>
        </div>

          </div>
        </div>

        <!-- Action Footer -->
        <div class="bg-gray-50 border-t border-gray-200 px-8 py-6">
          <div class="flex flex-col sm:flex-row items-center justify-between space-y-4 sm:space-y-0">
            <div class="text-sm text-gray-600">
              <p>These terms are effective as of the last updated date above.</p>
            </div>
            <div class="flex items-center space-x-4">
              <a href="/privacy" class="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 transition-colors">
                <svg class="w-4 h-4 mr-2" fill="currentColor" viewBox="0 0 20 20">
                  <path fill-rule="evenodd" d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z" clip-rule="evenodd"></path>
                </svg>
                Privacy Policy
              </a>
              <a href="/support" class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 transition-colors">
                <svg class="w-4 h-4 mr-2" fill="currentColor" viewBox="0 0 20 20">
                  <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-2 0c0 .993-.241 1.929-.668 2.754l-1.524-1.525a3.997 3.997 0 00.078-2.183l1.562-1.562C17.756 8.249 18 9.1 18 10z" clip-rule="evenodd"></path>
                </svg>
                Get Support
              </a>
            </div>
          </div>
        </div>
      </div>

      <!-- Bottom Navigation -->
      <div class="mt-8 text-center">
        <a href="/" class="inline-flex items-center text-blue-600 hover:text-blue-800 font-medium transition-colors">
          <svg class="w-4 h-4 mr-2" fill="currentColor" viewBox="0 0 20 20">
            <path fill-rule="evenodd" d="M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z" clip-rule="evenodd"></path>
          </svg>
          Back to Application
        </a>
      </div>
    </div>
  </main>
</Layout>