import { Metadata } from "next"

export const metadata: Metadata = {
    title: "Terms of Service - Fediversion",
    description: "Terms of Service for Fediversion, a community archive platform for live music fans.",
}

export default function TermsPage() {
    return (
        <div className="max-w-3xl mx-auto py-8">
            <h1 className="text-4xl font-bold mb-2">Terms of Service</h1>
            <p className="text-muted-foreground mb-8">Last updated: December 28, 2025</p>

            <div className="prose prose-neutral dark:prose-invert max-w-none space-y-8">
                <section>
                    <h2 className="text-2xl font-semibold mb-4">1. Acceptance of Terms</h2>
                    <p className="text-muted-foreground leading-relaxed">
                        By accessing or using Fediversion ("the Service"), you agree to be bound by these Terms of Service.
                        If you do not agree to these terms, please do not use the Service. We reserve the right to
                        update these terms at any time, and your continued use of the Service constitutes acceptance
                        of any changes.
                    </p>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">2. Description of Service</h2>
                    <p className="text-muted-foreground leading-relaxed">
                        Fediversion is a community-driven archive platform for live music enthusiasts. The Service allows
                        users to browse setlists, rate performances, participate in discussions, and contribute to
                        the archive. The Service is provided "as is" and we make no guarantees regarding availability,
                        accuracy, or completeness of content.
                    </p>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">3. User Accounts</h2>
                    <div className="text-muted-foreground leading-relaxed space-y-3">
                        <p>
                            To access certain features of the Service, you must create an account. You agree to:
                        </p>
                        <ul className="list-disc pl-6 space-y-2">
                            <li>Provide accurate and complete information during registration</li>
                            <li>Maintain the security of your account credentials</li>
                            <li>Notify us immediately of any unauthorized use of your account</li>
                            <li>Accept responsibility for all activities that occur under your account</li>
                        </ul>
                        <p>
                            You must be at least 13 years old to create an account and use the Service.
                        </p>
                    </div>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">4. User Conduct</h2>
                    <div className="text-muted-foreground leading-relaxed space-y-3">
                        <p>You agree not to:</p>
                        <ul className="list-disc pl-6 space-y-2">
                            <li>Post content that is defamatory, harassing, threatening, or discriminatory</li>
                            <li>Impersonate any person or entity</li>
                            <li>Upload malicious code or attempt to compromise the Service</li>
                            <li>Spam, advertise, or promote unrelated products or services</li>
                            <li>Circumvent any access controls or usage limits</li>
                            <li>Use automated tools to scrape or access the Service without permission</li>
                            <li>Violate any applicable laws or regulations</li>
                        </ul>
                        <p>
                            We reserve the right to suspend or terminate accounts that violate these guidelines.
                        </p>
                    </div>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">5. User-Generated Content</h2>
                    <div className="text-muted-foreground leading-relaxed space-y-3">
                        <p>
                            By submitting content to the Service (including reviews, comments, ratings, and
                            suggestions), you:
                        </p>
                        <ul className="list-disc pl-6 space-y-2">
                            <li>Grant us a non-exclusive, royalty-free license to use, display, and distribute your content</li>
                            <li>Represent that you have the right to submit such content</li>
                            <li>Acknowledge that your content may be viewed by other users</li>
                        </ul>
                        <p>
                            We do not claim ownership of your content but may moderate or remove content that
                            violates these terms.
                        </p>
                    </div>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">6. Intellectual Property</h2>
                    <p className="text-muted-foreground leading-relaxed">
                        The Service, including its design, code, and original content, is protected by copyright
                        and other intellectual property laws. Setlist data and performance information is
                        community-contributed and intended for personal, non-commercial use. All trademarks,
                        artist names, and related imagery remain the property of their respective owners.
                    </p>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">7. Disclaimer of Warranties</h2>
                    <p className="text-muted-foreground leading-relaxed">
                        THE SERVICE IS PROVIDED "AS IS" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
                        INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
                        PURPOSE, AND NON-INFRINGEMENT. WE DO NOT WARRANT THAT THE SERVICE WILL BE UNINTERRUPTED,
                        ERROR-FREE, OR SECURE.
                    </p>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">8. Limitation of Liability</h2>
                    <p className="text-muted-foreground leading-relaxed">
                        TO THE MAXIMUM EXTENT PERMITTED BY LAW, WE SHALL NOT BE LIABLE FOR ANY INDIRECT,
                        INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES ARISING FROM YOUR USE OF THE
                        SERVICE. OUR TOTAL LIABILITY SHALL NOT EXCEED THE AMOUNT YOU PAID TO USE THE SERVICE
                        (IF ANY) IN THE TWELVE MONTHS PRECEDING THE CLAIM.
                    </p>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">9. Account Termination</h2>
                    <p className="text-muted-foreground leading-relaxed">
                        You may delete your account at any time through your account settings. We may suspend
                        or terminate your account for violations of these terms or for any other reason at our
                        discretion. Upon termination, your right to use the Service ceases immediately.
                    </p>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">10. Changes to Terms</h2>
                    <p className="text-muted-foreground leading-relaxed">
                        We may modify these Terms of Service at any time. We will notify users of material
                        changes via email or through the Service. Your continued use after such modifications
                        constitutes acceptance of the updated terms.
                    </p>
                </section>

                <section>
                    <h2 className="text-2xl font-semibold mb-4">11. Contact</h2>
                    <p className="text-muted-foreground leading-relaxed">
                        If you have questions about these Terms of Service, please contact us at{" "}
                        <a href="mailto:support@fediversion.runfoo.run" className="text-primary hover:underline">
                            support@fediversion.runfoo.run
                        </a>.
                    </p>
                </section>
            </div>
        </div>
    )
}
