import Link from 'next/link'

export default function PrivacyPage({ params: { locale } }: { params: { locale: string } }) {
  return (
    <div className="page" style={{ maxWidth: 720 }}>
      <div className="page-head">
        <div>
          <h1 className="page-title">Privacy Policy</h1>
          <p className="page-sub">Last updated: April 2026</p>
        </div>
      </div>

      <div className="card" style={{ padding: 32, lineHeight: 1.7, fontSize: 14, color: 'var(--ink-2)' }}>
        <h2 style={{ fontSize: 16, fontWeight: 600, color: 'var(--ink)', marginBottom: 8 }}>1. Information We Collect</h2>
        <p style={{ marginBottom: 20 }}>
          We collect your Ethereum wallet address when you connect your wallet. This address is used solely to
          authenticate your session and manage your subscription. We do not collect your name, email address, or
          any other personally identifiable information unless you voluntarily provide it via the contact form.
        </p>

        <h2 style={{ fontSize: 16, fontWeight: 600, color: 'var(--ink)', marginBottom: 8 }}>2. Hyperliquid API Keys</h2>
        <p style={{ marginBottom: 20 }}>
          If you choose to connect a Hyperliquid API key, it is encrypted at rest using industry-standard symmetric
          encryption (Fernet/AES-128-CBC). The plaintext key is never logged, cached, or transmitted except to
          Hyperliquid&apos;s official API endpoints to execute trades on your behalf.
        </p>

        <h2 style={{ fontSize: 16, fontWeight: 600, color: 'var(--ink)', marginBottom: 8 }}>3. How We Use Your Data</h2>
        <p style={{ marginBottom: 20 }}>
          Your wallet address and trading configuration are used exclusively to operate the automated trading bot
          on your behalf. We do not sell, rent, or share your data with third parties, except as required to
          process trades (Hyperliquid API) or comply with applicable law.
        </p>

        <h2 style={{ fontSize: 16, fontWeight: 600, color: 'var(--ink)', marginBottom: 8 }}>4. Cookies &amp; Analytics</h2>
        <p style={{ marginBottom: 20 }}>
          We use minimal analytics to understand aggregate usage patterns (page views, error rates). No
          personal identifiers are associated with analytics events. We do not use advertising cookies or
          cross-site tracking.
        </p>

        <h2 style={{ fontSize: 16, fontWeight: 600, color: 'var(--ink)', marginBottom: 8 }}>5. Data Retention</h2>
        <p style={{ marginBottom: 20 }}>
          Subscription data is retained for as long as your account is active. You may request deletion of your
          data at any time by contacting us. Trade history is retained for up to 24 months for dispute resolution
          purposes.
        </p>

        <h2 style={{ fontSize: 16, fontWeight: 600, color: 'var(--ink)', marginBottom: 8 }}>6. Contact</h2>
        <p>
          For privacy-related inquiries, please use our <Link href={`/${locale}/contact`} style={{ color: 'var(--amber)' }}>contact form</Link>.
        </p>
      </div>
    </div>
  )
}
