import type { Metadata } from "next";

export const metadata: Metadata = {
  title: "Terms of Service — Vib'n",
  description: "Terms governing your use of the Vib'n platform.",
};

export default function TermsPage() {
  const lastUpdated = "February 19, 2026";

  return (
    <div className="container max-w-3xl mx-auto py-16 px-6">
      <h1 className="text-3xl font-bold mb-2">Terms of Service</h1>
      <p className="text-sm text-muted-foreground mb-10">Last updated: {lastUpdated}</p>

      <div className="prose prose-neutral dark:prose-invert max-w-none space-y-8">

        <section>
          <p>
            These Terms of Service (&quot;Terms&quot;) govern your use of Vib&apos;n, operated by
            Mark Henderson in Victoria, British Columbia, Canada (&quot;we&quot;, &quot;us&quot;,
            or &quot;our&quot;). By creating an account or using vibnai.com, you agree to these Terms.
            If you do not agree, do not use the service.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">1. The Service</h2>
          <p className="text-muted-foreground">
            Vib&apos;n is an AI-powered software development platform that provides code repositories,
            a browser-based IDE, and AI assistance tools. We reserve the right to modify, suspend,
            or discontinue any part of the service at any time with reasonable notice where possible.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">2. Accounts</h2>
          <ul className="list-disc pl-6 space-y-1 text-muted-foreground">
            <li>You must be at least 16 years old to use Vib&apos;n</li>
            <li>You are responsible for maintaining the security of your account</li>
            <li>You are responsible for all activity that occurs under your account</li>
            <li>You must notify us immediately of any unauthorized access at{" "}
              <a href="mailto:security@vibnai.com" className="underline underline-offset-4">
                security@vibnai.com
              </a>
            </li>
            <li>One person may not maintain more than one free account</li>
          </ul>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">3. Acceptable Use</h2>
          <p className="text-muted-foreground mb-3">You agree not to use Vib&apos;n to:</p>
          <ul className="list-disc pl-6 space-y-1 text-muted-foreground">
            <li>Violate any applicable law or regulation</li>
            <li>Build, distribute, or host malware, spyware, or other malicious software</li>
            <li>Infringe on the intellectual property rights of others</li>
            <li>Harass, threaten, or harm any person</li>
            <li>Attempt to gain unauthorized access to any system or network</li>
            <li>Use automated tools to scrape or stress-test the platform without permission</li>
            <li>Resell or sublicense access to the platform without our written consent</li>
            <li>Use AI features to generate content that is illegal, defamatory, or harmful</li>
          </ul>
          <p className="mt-3 text-muted-foreground">
            We reserve the right to suspend or terminate accounts that violate these terms.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">4. Your Content</h2>
          <p className="text-muted-foreground">
            You retain ownership of all code, files, and content you create on Vib&apos;n.
            By using the platform, you grant us a limited licence to store, display, and process
            your content solely to provide the service. We do not claim ownership of your work
            and do not use your content to train AI models.
          </p>
          <p className="mt-3 text-muted-foreground">
            You are responsible for ensuring you have the rights to any content you upload or
            generate through the platform.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">5. AI Features</h2>
          <ul className="list-disc pl-6 space-y-1 text-muted-foreground">
            <li>AI-generated code and suggestions are provided as-is without warranty</li>
            <li>You are responsible for reviewing and testing any AI-generated output before use</li>
            <li>Do not submit sensitive personal data, passwords, or confidential business secrets to the AI assistant</li>
            <li>AI responses may be inaccurate — always verify critical information independently</li>
          </ul>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">6. Payment and Credits</h2>
          <ul className="list-disc pl-6 space-y-1 text-muted-foreground">
            <li>Subscription fees are billed monthly or annually as selected at checkout</li>
            <li>Credits for AI usage are consumed as you use AI features and do not roll over unless stated</li>
            <li>All fees are in Canadian dollars (CAD) unless otherwise stated</li>
            <li>We do not offer refunds for partial months or unused credits, except where required by law</li>
            <li>We will provide 30 days notice before any price changes take effect</li>
          </ul>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">7. Availability and Uptime</h2>
          <p className="text-muted-foreground">
            We aim to maintain high availability but do not guarantee uninterrupted service.
            Scheduled maintenance will be announced in advance where possible. We are not liable
            for losses arising from service downtime or interruptions.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">8. Intellectual Property</h2>
          <p className="text-muted-foreground">
            The Vib&apos;n name, logo, platform design, and underlying software are owned by us and
            protected by applicable intellectual property laws. You may not copy, modify, or
            distribute our platform or branding without express written permission.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">9. Disclaimer of Warranties</h2>
          <p className="text-muted-foreground">
            Vib&apos;n is provided &quot;as is&quot; and &quot;as available&quot; without warranties of any kind,
            express or implied, including but not limited to merchantability, fitness for a
            particular purpose, or non-infringement. We do not warrant that the service will
            be error-free or that AI outputs will be accurate or complete.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">10. Limitation of Liability</h2>
          <p className="text-muted-foreground">
            To the maximum extent permitted by applicable law, we shall not be liable for any
            indirect, incidental, special, consequential, or punitive damages, or any loss of
            profits or data, arising from your use of the service. Our total liability to you
            for any claim shall not exceed the amount you paid us in the 3 months prior to the
            claim.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">11. Termination</h2>
          <p className="text-muted-foreground">
            You may cancel your account at any time from your account settings. We may suspend
            or terminate your account for violation of these Terms, with notice where reasonably
            possible. Upon termination, you may request an export of your data within 30 days.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">12. Governing Law</h2>
          <p className="text-muted-foreground">
            These Terms are governed by the laws of the Province of British Columbia and the
            federal laws of Canada applicable therein. Any disputes shall be resolved in the
            courts of Victoria, British Columbia, Canada.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">13. Changes to These Terms</h2>
          <p className="text-muted-foreground">
            We may update these Terms from time to time. We will notify you of material changes
            at least 30 days in advance by email or by posting a notice on the platform.
            Continued use after changes take effect constitutes acceptance.
          </p>
        </section>

        <section>
          <h2 className="text-xl font-semibold mb-3">14. Contact</h2>
          <p className="text-muted-foreground">
            For questions about these Terms:
          </p>
          <address className="not-italic mt-2 text-muted-foreground">
            Mark Henderson<br />
            Vib&apos;n<br />
            Victoria, British Columbia, Canada<br />
            <a href="mailto:legal@vibnai.com" className="underline underline-offset-4">
              legal@vibnai.com
            </a>
          </address>
        </section>

      </div>
    </div>
  );
}
