/** Privacy policy page. */
import type { Metadata } from 'next'

/** Page metadata for the privacy policy. */
export const metadata: Metadata = {
  title: 'Privacy Policy — Huskies',
}

/** Renders the privacy policy page. */
export default function PrivacyPage() {
  return (
    <div className="container">
      <header>
        <h1>
          <a href="/" style={{ color: 'inherit' }}>
            stor<span>kit</span>
          </a>
        </h1>
        <p className="tagline">Privacy Policy</p>
      </header>

      <section>
        <p>
          <strong>Last updated:</strong> 25 March 2026
        </p>

        <h2>Who we are</h2>
        <p>
          Huskies is operated by Libby Labs Ltd (&ldquo;we&rdquo;, &ldquo;us&rdquo;, &ldquo;our&rdquo;), trading
          as Crashlabs. Our contact email is{' '}
          <a href="mailto:hello@huskies.dev">hello@huskies.dev</a>.
        </p>
      </section>

      <section>
        <h2>What we collect</h2>
        <p>
          When you interact with Huskies via WhatsApp, Slack, Matrix, or the web interface, we may collect:
        </p>
        <p>
          <strong>Messaging data:</strong> Your phone number or chat identifier and the content of messages you
          send to the bot. This is used solely to process your requests and maintain conversation context.
        </p>
        <p>
          <strong>Usage data:</strong> Basic server logs including timestamps and request metadata. We do not use
          analytics trackers on this website.
        </p>
      </section>

      <section>
        <h2>How we use your data</h2>
        <p>We use your data only to provide and improve the Huskies service. Specifically:</p>
        <p>
          - To process commands and respond to your messages.<br />
          - To maintain conversation history within active sessions.<br />
          - To diagnose and fix technical issues.
        </p>
        <p>We do not sell, rent, or share your personal data with third parties for marketing purposes.</p>
      </section>

      <section>
        <h2>Third-party services</h2>
        <p>
          Messages sent via WhatsApp are processed through Meta&apos;s WhatsApp Business API or Twilio&apos;s
          messaging platform, subject to their respective privacy policies. Messages sent via Slack or Matrix pass
          through those platforms&apos; infrastructure.
        </p>
      </section>

      <section>
        <h2>Data retention</h2>
        <p>
          Conversation history is stored locally on our servers and retained only for the duration needed to
          maintain session context. We do not retain message data indefinitely.
        </p>
      </section>

      <section>
        <h2>Your rights</h2>
        <p>
          You may request access to, correction of, or deletion of your personal data at any time by contacting
          us at <a href="mailto:hello@huskies.dev">hello@huskies.dev</a>.
        </p>
      </section>

      <section>
        <h2>Changes to this policy</h2>
        <p>
          We may update this policy from time to time. Changes will be posted on this page with an updated date.
        </p>
      </section>

      <footer>
        <p>
          &copy; 2026 Libby Labs Ltd. All rights reserved. &middot; <a href="/">Home</a>
        </p>
      </footer>
    </div>
  )
}
