{% extends "base.html" %}

{% block title %}Terms of Service - SmartTools{% endblock %}

{% block meta_description %}SmartTools terms of service. Read our terms and conditions for using the platform.{% endblock %}

{% block content %}
<div class="bg-white py-16">
    <div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
        <h1 class="text-3xl font-bold text-gray-900 mb-2">Terms of Service</h1>
        <p class="text-gray-500 mb-8">Last updated: January 2025</p>

        <div class="prose prose-lg prose-indigo max-w-none">
            <h2>1. Acceptance of Terms</h2>
            <p>
                By accessing or using SmartTools ("the Service"), you agree to be bound by these
                Terms of Service ("Terms"). If you do not agree to these Terms, you may not use
                the Service.
            </p>

            <h2>2. Description of Service</h2>
            <p>
                SmartTools is a platform for creating, publishing, and sharing AI-powered
                command-line tools. The Service includes:
            </p>
            <ul>
                <li>The SmartTools CLI application</li>
                <li>The SmartTools Registry (tool hosting and discovery)</li>
                <li>Documentation and tutorials</li>
                <li>Community features</li>
            </ul>

            <h2>3. User Accounts</h2>
            <p>
                To publish tools or access certain features, you must create an account. You agree to:
            </p>
            <ul>
                <li>Provide accurate and complete information</li>
                <li>Maintain the security of your account credentials</li>
                <li>Notify us immediately of any unauthorized access</li>
                <li>Accept responsibility for all activities under your account</li>
            </ul>

            <h2>4. User Content</h2>

            <h3>4.1 Your Content</h3>
            <p>
                You retain ownership of tools and content you publish ("User Content"). By publishing
                to the Registry, you grant SmartTools a non-exclusive, worldwide license to host,
                distribute, and display your User Content.
            </p>

            <h3>4.2 Content Standards</h3>
            <p>You agree not to publish content that:</p>
            <ul>
                <li>Contains malware, viruses, or malicious code</li>
                <li>Infringes on intellectual property rights</li>
                <li>Is illegal, harmful, or promotes illegal activities</li>
                <li>Harasses, threatens, or harms others</li>
                <li>Contains spam or deceptive content</li>
                <li>Violates the privacy of others</li>
            </ul>

            <h3>4.3 Content Removal</h3>
            <p>
                We reserve the right to remove any content that violates these Terms or that we
                determine to be harmful to users or the community.
            </p>

            <h2>5. Acceptable Use</h2>
            <p>You agree not to:</p>
            <ul>
                <li>Use the Service for any unlawful purpose</li>
                <li>Attempt to gain unauthorized access to our systems</li>
                <li>Interfere with or disrupt the Service</li>
                <li>Scrape or collect data without permission</li>
                <li>Impersonate others or misrepresent your affiliation</li>
                <li>Use automated systems to access the Service excessively</li>
            </ul>

            <h2>6. API and CLI Usage</h2>
            <p>
                Access to the SmartTools API and CLI is subject to rate limits. Excessive use
                that impacts service availability for others may result in temporary or permanent
                restrictions.
            </p>

            <h2>7. Third-Party Services</h2>
            <p>
                SmartTools is designed to work with various AI providers and external services.
                Your use of these third-party services is subject to their respective terms and
                conditions. We are not responsible for third-party services.
            </p>

            <h2>8. Intellectual Property</h2>
            <p>
                The SmartTools software is open source and licensed under the MIT License.
                The SmartTools name, logo, and branding are trademarks of SmartTools.
            </p>

            <h2>9. Disclaimer of Warranties</h2>
            <p>
                THE SERVICE IS PROVIDED "AS IS" WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED.
                WE DO NOT WARRANT THAT THE SERVICE WILL BE UNINTERRUPTED, ERROR-FREE, OR SECURE.
            </p>
            <p>
                Tools published by third parties are not endorsed by SmartTools. You use third-party
                tools at your own risk.
            </p>

            <h2>10. Limitation of Liability</h2>
            <p>
                TO THE MAXIMUM EXTENT PERMITTED BY LAW, SMARTTOOLS SHALL NOT BE LIABLE FOR ANY
                INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES ARISING FROM
                YOUR USE OF THE SERVICE.
            </p>

            <h2>11. Indemnification</h2>
            <p>
                You agree to indemnify and hold harmless SmartTools and its contributors from
                any claims, damages, or expenses arising from your use of the Service or
                violation of these Terms.
            </p>

            <h2>12. Termination</h2>
            <p>
                We may terminate or suspend your access to the Service at any time, with or
                without cause. Upon termination, your right to use the Service ceases immediately.
            </p>
            <p>
                You may delete your account at any time through your account settings.
            </p>

            <h2>13. Changes to Terms</h2>
            <p>
                We may modify these Terms at any time. We will notify you of significant changes
                by posting a notice on our website. Continued use of the Service after changes
                constitutes acceptance of the new Terms.
            </p>

            <h2>14. Governing Law</h2>
            <p>
                These Terms are governed by the laws of the jurisdiction in which SmartTools
                operates, without regard to conflict of law principles.
            </p>

            <h2>15. Contact</h2>
            <p>
                For questions about these Terms, please contact us at:
            </p>
            <ul>
                <li>Email: legal@smarttools.dev</li>
                <li>GitHub: <a href="https://github.com/your-org/smarttools/issues">Open an issue</a></li>
            </ul>
        </div>
    </div>
</div>
{% endblock %}
