@page "/en/terms"
@model Nalu.Web.Pages.En.Legal.TermsModel
@{
    ViewData["LangPrefix"] = "/en";
    ViewData["Title"] = "Terms of Use — NaLU AI";
    ViewData["Description"] = "NaLU AI terms of use. Learn the platform usage rules, credit limits and responsibilities.";
}

<section class="bg-gradient-to-b from-slate-50 to-white pt-16 pb-8">
    <div class="max-w-3xl mx-auto px-4 sm:px-6">
        <h1 class="text-3xl font-extrabold text-gray-900 mb-2">Terms of Use</h1>
        <p class="text-gray-500 text-sm">Last updated: @DateTime.UtcNow.ToString("MMMM d, yyyy", System.Globalization.CultureInfo.InvariantCulture)</p>
    </div>
</section>

<section class="py-10 bg-white">
    <div class="max-w-3xl mx-auto px-4 sm:px-6 space-y-10 text-gray-700 text-sm leading-relaxed">

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">1. Acceptance of terms</h2>
            <p>By creating an account or using the NaLU AI API, you agree to these Terms of Use. If you use NaLU AI on behalf of a company, you represent that you have authority to bind the company to these terms.</p>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">2. Description of service</h2>
            <p>NaLU AI provides a semantic extraction and data validation API for dialogues between AI agents and end users. The service is offered through plans with monthly credits.</p>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">3. Acceptable use</h2>
            <p class="mb-3">You agree not to use the service to:</p>
            <ul class="list-disc list-inside space-y-1 text-gray-600">
                <li>Process sensitive personal data without adequate legal basis (health, religion, sexual orientation, etc.)</li>
                <li>Circumvent rate or credit limits through technical means or multiple accounts</li>
                <li>Resell API access without an express commercial agreement with NaLU AI</li>
                <li>Any illegal activity or activity that violates third-party rights</li>
            </ul>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">4. Credits and payments</h2>
            <ul class="list-disc list-inside space-y-2 text-gray-600">
                <li>Unused credits in a month do not carry over to the next billing cycle.</li>
                <li>Paid plans are billed monthly via Stripe. Cancellations take effect in the next cycle.</li>
                <li>No refunds for partially used credits, except for proven technical failure by NaLU AI.</li>
                <li>When credits are exhausted, calls return HTTP 402. No automatic additional charges.</li>
            </ul>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">5. Cancellation and right of withdrawal</h2>
            <ul class="list-disc list-inside space-y-2 text-gray-600">
                <li>
                    <strong>Right of withdrawal (Brazilian CDC, art. 49):</strong> within the first 7 calendar days after
                    subscribing, you may request cancellation with a full refund. Send an email to
                    <a data-email class="font-semibold"></a> with subject "Cancellation — withdrawal". Refunds are processed
                    within 5 business days.
                </li>
                <li>
                    <strong>After 7 days:</strong> cancellation takes effect at the end of the current billing cycle.
                    Credits remain available until that date. No charge is made in the following cycle.
                </li>
                <li>
                    <strong>Upgrades and downgrades</strong> can be requested at any time via Dashboard → Manage subscription.
                    Plan changes take effect at the next billing cycle.
                </li>
            </ul>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">6. Data privacy</h2>

            <p>The content of dialogues sent to the API is <strong>not stored</strong>. See our <a href="/en/privacy" class="text-nalu-600 hover:underline">Privacy Policy</a> for full details.</p>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">7. Availability and SLA</h2>
            <ul class="list-disc list-inside space-y-1 text-gray-600">
                <li>Free and Starter plans: no formal SLA guarantee.</li>
                <li>Pro plan: target availability of 99% monthly. Compensatory credits in case of non-compliance.</li>
                <li>Scheduled maintenance is communicated 48h in advance.</li>
            </ul>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">8. Intellectual property</h2>
            <p>The NaLU AI API, documentation and infrastructure are the exclusive property of NaLU AI. Use of the service does not transfer any intellectual property rights to the user. The data you submit remains your property.</p>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">9. Limitation of liability</h2>
            <p>NaLU AI is not responsible for business decisions made based on validation results. The service is provided as a technical aid — final validation and use of extracted data is the responsibility of the contracting party.</p>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">10. Changes to terms</h2>
            <p>We reserve the right to change these terms at any time. Relevant changes will be communicated by email with 15 days notice. Continued use after that period implies acceptance of the new conditions.</p>
        </div>

        <div>
            <h2 class="text-xl font-bold text-gray-900 mb-3">11. Contact</h2>
            <p>Questions: <a data-email class="font-semibold"></a></p>
        </div>

    </div>
</section>
