{% extends "base.html" %}

{% block title %}Terms of Service — {{ config.APP_NAME }}{% endblock %}

{% block content %}
<main class="container-page py-12">
  <div class="max-w-3xl mx-auto">
    <div class="page-header">
      <h1>Terms of Service</h1>
      <p class="text-sm text-stone">Last updated: January 2024</p>
    </div>

    <div class="card">
      <section class="mb-8">
        <h2 class="text-xl mb-3">1. Acceptance of Terms</h2>
        <p class="text-stone">By accessing or using {{ config.APP_NAME }}, you agree to be bound by these Terms of Service. If you do not agree, do not use the service.</p>
      </section>

      <section class="mb-8">
        <h2 class="text-xl mb-3">2. Description of Service</h2>
        <p class="text-stone">{{ config.APP_NAME }} provides a software-as-a-service platform. Features and functionality may change over time.</p>
      </section>

      <section class="mb-8">
        <h2 class="text-xl mb-3">3. User Accounts</h2>
        <p class="text-stone">You are responsible for maintaining the security of your account. You must provide accurate information and keep it updated.</p>
      </section>

      <section class="mb-8">
        <h2 class="text-xl mb-3">4. Acceptable Use</h2>
        <p class="text-stone mb-2">You agree not to:</p>
        <ul class="list-disc pl-5 space-y-1 text-sm text-stone">
          <li>Violate any laws or regulations</li>
          <li>Infringe on intellectual property rights</li>
          <li>Transmit harmful code or malware</li>
          <li>Attempt to gain unauthorized access</li>
          <li>Interfere with service operation</li>
        </ul>
      </section>

      <section class="mb-8">
        <h2 class="text-xl mb-3">5. Payment Terms</h2>
        <p class="text-stone">Paid plans are billed in advance. Refunds are handled on a case-by-case basis. We may change pricing with 30 days notice.</p>
      </section>

      <section class="mb-8">
        <h2 class="text-xl mb-3">6. Termination</h2>
        <p class="text-stone">We may terminate or suspend your account for violations of these terms. You may cancel your account at any time.</p>
      </section>

      <section class="mb-8">
        <h2 class="text-xl mb-3">7. Disclaimer of Warranties</h2>
        <p class="text-stone">The service is provided "as is" without warranties of any kind. We do not guarantee uninterrupted or error-free operation.</p>
      </section>

      <section class="mb-8">
        <h2 class="text-xl mb-3">8. Limitation of Liability</h2>
        <p class="text-stone">We shall not be liable for any indirect, incidental, special, or consequential damages arising from use of the service.</p>
      </section>

      <section class="mb-8">
        <h2 class="text-xl mb-3">9. Changes to Terms</h2>
        <p class="text-stone">We may modify these terms at any time. Continued use after changes constitutes acceptance of the new terms.</p>
      </section>

      <section>
        <h2 class="text-xl mb-3">10. Contact</h2>
        <p class="text-stone">For questions about these terms, please contact us at {{ config.EMAIL_FROM }}.</p>
      </section>
    </div>
  </div>
</main>
{% endblock %}
