import Link from "next/link"
import type { Metadata } from "next"

export const metadata: Metadata = {
  title: "Terms of Service — AutoJobs",
  description: "AutoJobs terms of service. Rules, limitations, and user responsibilities for using our AI job application automation platform.",
}

export default function TermsPage() {
  return (
    <div className="min-h-screen bg-slate-900">
      <nav className="flex justify-between items-center px-6 py-5 max-w-4xl mx-auto">
        <Link href="/autojobs" className="text-2xl font-bold text-white">
          Auto<span className="text-blue-400">Jobs</span>
        </Link>
        <Link href="/autojobs" className="text-slate-400 hover:text-white transition text-sm">
          ← Back to Home
        </Link>
      </nav>
      
      <main className="max-w-3xl mx-auto px-6 py-12 text-slate-300 leading-relaxed">
        <h1 className="text-3xl font-bold text-white mb-8">Terms of Service</h1>
        <p className="text-sm text-slate-500 mb-8">Last updated: April 13, 2026</p>
        
        <div className="space-y-8">
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">1. Acceptance of Terms</h2>
            <p>By creating an account or using AutoJobs, you agree to these Terms of Service. If you do not agree, do not use our services. These terms form a binding agreement between you and HostPioneers.</p>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">2. Services Description</h2>
            <p>AutoJobs provides AI-powered job application automation, including: job search aggregation, AI resume customization, AI cover letter generation, application tracking, and related features. We do not guarantee job placement, interviews, or employment.</p>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">3. Account Responsibilities</h2>
            <ul className="list-disc pl-6 space-y-2">
              <li>You are responsible for maintaining the confidentiality of your login credentials</li>
              <li>You must provide accurate information during signup</li>
              <li>You are responsible for all activity under your account</li>
              <li>You must be at least 18 years old to use the service</li>
              <li>One account per person unless using an approved agency plan</li>
            </ul>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">4. Acceptable Use</h2>
            <p>You agree NOT to:</p>
            <ul className="list-disc pl-6 space-y-2 mt-2">
              <li>Use AutoJobs for illegal purposes</li>
              <li>Submit false, misleading, or fraudulent job applications</li>
              <li>Mass-apply to jobs without genuine interest</li>
              <li>Share account access with others (agency plans have separate client profiles)</li>
              <li>Reverse engineer, decompile, or hack our systems</li>
              <li>Use automated bots or scrapers outside the API</li>
              <li>Spam job postings or employers</li>
            </ul>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">5. Subscriptions & Billing</h2>
            <ul className="list-disc pl-6 space-y-2">
              <li>Subscriptions renew monthly on the same date</li>
              <li>All prices are in USD unless stated otherwise</li>
              <li>You authorize recurring charges to your payment method</li>
              <li>Cancellation takes effect at end of current billing period</li>
              <li>No refunds for partial months (prorated or otherwise)</li>
              <li>Plan limits reset monthly; unused applications do not roll over</li>
            </ul>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">6. Agency Plans</h2>
            <p>Agency plans allow managing multiple client profiles. The subscribing agency is responsible for:</p>
            <ul className="list-disc pl-6 space-y-2 mt-2">
              <li>Obtaining consent from clients for data processing</li>
              <li>Compliance with applicable employment laws in their jurisdiction</li>
              <li>Not exceeding submission caps per plan</li>
              <li>Proper use of white-label features</li>
            </ul>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">7. AI-Generated Content</h2>
            <p>AI-generated resumes and cover letters are tools to assist your job search. You are responsible for reviewing and approving all AI-generated content before submission. We do not guarantee accuracy, relevance, or success of AI-generated content.</p>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">8. Limitation of Liability</h2>
            <p>AutoJobs and HostPioneers are NOT liable for: direct, indirect, incidental, or consequential damages arising from use of the service; loss of employment, interviews, or job opportunities; actions taken by employers based on AI-generated content; service interruptions or data loss.</p>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">9. Service Availability</h2>
            <p>We strive for 99.9% uptime but do not guarantee uninterrupted service. Scheduled maintenance will be announced when possible. We reserve the right to modify, suspend, or discontinue features with 30 days notice.</p>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">10. Intellectual Property</h2>
            <p>You retain ownership of your resume and personal data. We retain ownership of our platform, AI models, and proprietary technology. You grant us a limited license to process your data as part of providing services.</p>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">11. Termination</h2>
            <p>We may suspend or terminate accounts that violate these terms. You may cancel anytime via dashboard or by contacting support. Upon termination, your data is retained for 30 days per our privacy policy.</p>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">12. Governing Law</h2>
            <p>These terms are governed by the laws of Spain. Any disputes shall be resolved in courts located in Málaga, Spain. If any provision is found unenforceable, remaining provisions continue in effect.</p>
          </section>
          
          <section>
            <h2 className="text-xl font-semibold text-white mb-3">13. Contact</h2>
            <p>Questions about these terms?<br/>
            Email: <a href="mailto:legal@hostpioneers.com" className="text-blue-400 hover:underline">legal@hostpioneers.com</a></p>
          </section>
        </div>
      </main>
    </div>
  )
}