import type { Metadata } from 'next';

export const metadata: Metadata = {
  title: 'Disclaimer — Vaultfire',
  description:
    'Honest disclosures about the alpha status of Vaultfire, smart contract risk, and why bonds are performance collateral, not investments.',
};

export const dynamic = 'force-static';

export default function DisclaimerPage() {
  return (
    <main className="min-h-screen bg-[var(--color-ember-bg)] text-[var(--color-ember-text)] px-6 py-12">
      <div className="max-w-3xl mx-auto">
        <a
          href="/"
          className="text-sm text-[var(--color-ember-text-muted)] hover:text-white transition-colors"
        >
          ← theloopbreaker.com
        </a>

        <h1 className="mt-6 text-4xl md:text-5xl font-bold">Disclaimer</h1>
        <p className="mt-3 text-sm text-[var(--color-ember-text-muted)]">
          Effective Date: April 27, 2026 · Last Updated: April 27, 2026
        </p>

        <p className="mt-6 text-base leading-relaxed">
          Read this carefully before using the Vaultfire Protocol or theloopbreaker.com.
        </p>

        <Section title="Not financial, investment, legal, or tax advice">
          <p>
            Nothing on the Service constitutes financial, investment, legal,
            accounting, tax, or any other professional advice. We are not your
            broker, advisor, fiduciary, attorney, or accountant. Information is
            provided for general educational and informational purposes only.
          </p>
          <p className="mt-3">
            Consult qualified professionals (licensed in your jurisdiction) before
            making any financial, legal, or operational decision based on anything
            you read here.
          </p>
        </Section>

        <Section title="Bonds are performance collateral, not investments">
          <p>
            Vaultfire accountability bonds and partnership bonds are{' '}
            <strong>performance collateral</strong> — value posted to demonstrate
            commitment and to compensate harmed counterparties when disputes are
            resolved against the poster. They are not:
          </p>
          <ul className="mt-2 list-disc pl-6 space-y-1">
            <li>Investments</li>
            <li>Securities</li>
            <li>Notes, debentures, or evidence of indebtedness</li>
            <li>Investment contracts under the Howey test</li>
            <li>Funds, units, shares, or other ownership interests</li>
            <li>Yield-bearing instruments</li>
          </ul>
          <p className="mt-3">When you post a bond:</p>
          <ul className="mt-2 list-disc pl-6 space-y-1">
            <li>You have no expectation of profit derived from the efforts of others</li>
            <li>You do not own a stake in any common enterprise we operate</li>
            <li>You are not entitled to dividends, interest, or yield</li>
            <li>The bond is not redeemable for any other asset</li>
            <li>The bond does not appreciate based on our performance</li>
          </ul>
          <p className="mt-3">
            If a dispute is filed and resolved, the bond is distributed per the
            on-chain mechanism documented at{' '}
            <A href="/how-resolution-works">/how-resolution-works</A>, with weighting
            toward the harmed party. This is performance collateral logic, not
            investment-return logic.
          </p>
        </Section>

        <Section title="Alpha software — use at your own risk">
          <p>
            The Vaultfire Protocol is currently in <strong>alpha</strong>. The Service:
          </p>
          <ul className="mt-2 list-disc pl-6 space-y-1">
            <li>May contain bugs, vulnerabilities, or unintended behavior</li>
            <li>
              Has been audited internally and via AI-assisted review, but{' '}
              <strong>has not undergone third-party professional audit</strong> as of
              the effective date (see <A href="/security">/security</A>)
            </li>
            <li>Operates on public blockchains where transactions are irreversible</li>
            <li>Depends on external services (RPC providers, oracles, blockchains) that may fail or behave unexpectedly</li>
          </ul>
          <p className="mt-3">
            You bear the entire risk of using the Service. We strongly recommend you
            start with small amounts you can afford to lose.
          </p>
        </Section>

        <Section title="Smart contract risk">
          <p>
            Smart contracts are autonomous code. Once deployed, they execute exactly
            as written, including any bugs. Risks include but are not limited to:
          </p>
          <ul className="mt-2 list-disc pl-6 space-y-1">
            <li>Logic errors that cause unintended outcomes</li>
            <li>Economic exploits (re-entrancy, oracle manipulation, MEV, flash-loan attacks)</li>
            <li>Governance attacks</li>
            <li>Network-level issues (chain reorgs, RPC failures, gas-price spikes)</li>
            <li>Compromised dependencies or upstream protocols</li>
          </ul>
          <p className="mt-3">
            No audit guarantees the absence of bugs. AI-assisted review and even
            multiple professional audits cannot detect all issues.
          </p>
        </Section>

        <Section title="Cryptocurrency risk">
          <p>
            Cryptocurrency, stablecoins, and on-chain tokens are highly volatile and
            subject to:
          </p>
          <ul className="mt-2 list-disc pl-6 space-y-1">
            <li>Significant price fluctuations</li>
            <li>Regulatory changes that may render them illegal in your jurisdiction</li>
            <li>Loss due to compromised wallets, lost keys, or human error</li>
            <li>Loss due to chain failures, bridge exploits, or third-party custodian failures</li>
            <li>Total loss with no recovery mechanism</li>
          </ul>
          <p className="mt-3">
            Past performance does not indicate future results. There is no FDIC,
            SIPC, or government insurance for on-chain assets.
          </p>
        </Section>

        <Section title="AI agent risk">
          <p>
            The Service supports AI agents posting bonds, registering identities, and
            entering into on-chain agreements. AI agents may:
          </p>
          <ul className="mt-2 list-disc pl-6 space-y-1">
            <li>Behave unpredictably or contrary to their stated purpose</li>
            <li>Be misrepresented by their operators</li>
            <li>Fail to perform their stated functions</li>
            <li>Be compromised, hijacked, or otherwise act adversarially</li>
            <li>Make decisions that harm counterparties</li>
          </ul>
          <p className="mt-3">
            The trust signals provided by Vaultfire (Street Cred, ERC-8004 identity,
            bond posture) are <strong>inputs to your decision</strong>, not
            guarantees. You are responsible for evaluating any agent before
            transacting with it.
          </p>
        </Section>

        <Section title="Forward-looking statements">
          <p>
            The Service may contain forward-looking statements (roadmap items,
            planned features, projected behavior). These are aspirations, not
            commitments. Actual outcomes may differ materially. We are under no
            obligation to update forward-looking statements as circumstances change.
          </p>
        </Section>

        <Section title="No guarantees of availability">
          <p>
            We do not guarantee the Service will be available, accurate, timely, or
            uninterrupted. Outages, errors, downtime, and network congestion happen.
          </p>
        </Section>

        <Section title="Regulatory status — honest caveats">
          <p>
            The legal classification of crypto-economic instruments is unsettled in
            many jurisdictions. We have analyzed Vaultfire bonds against U.S.
            securities-law frameworks (including the Howey and Reves tests) and
            concluded in good faith that they are performance collateral outside the
            scope of those frameworks.{' '}
            <strong>This is not a legal opinion you can rely on.</strong> Regulators
            may disagree. Regulations may change. Different jurisdictions apply
            different tests.
          </p>
          <p className="mt-3">
            If you are in a jurisdiction with restrictive crypto regulations, consult
            counsel before using the Service.
          </p>
        </Section>

        <Section title="Sanctions and prohibited use">
          <p>
            You must not use the Service if you are located in, organized under the
            laws of, or a resident of a comprehensively sanctioned jurisdiction, or
            are listed on any sanctions list. See our <A href="/terms">Terms of Service</A>{' '}
            for full prohibited-use rules.
          </p>
        </Section>

        <Section title="Information accuracy">
          <p>
            We make good-faith efforts to keep information accurate and current. The
            Service may nonetheless contain errors, omissions, or out-of-date
            material. Always verify critical data against the source (block explorers
            for on-chain state, the GitHub repository for current contract code).
          </p>
        </Section>

        <Section title="Your responsibilities">
          <p>By using the Service, you acknowledge and agree that you:</p>
          <ul className="mt-2 list-disc pl-6 space-y-1">
            <li>
              Have read and understood the <A href="/terms">Terms of Service</A>,{' '}
              <A href="/privacy">Privacy Policy</A>, and this Disclaimer
            </li>
            <li>Are using the Service voluntarily and at your own risk</li>
            <li>Are responsible for your own decisions and outcomes</li>
            <li>Will not hold us liable for losses arising from your use of the Service, except as provided in the Terms</li>
            <li>Have considered the alpha status of the protocol and the absence of third-party audits when deciding how much to put at risk</li>
          </ul>
        </Section>

        <Section title="Contact">
          <p>
            Questions:{' '}
            <a
              href="mailto:ghostkey316@proton.me"
              className="text-[var(--color-ember-accent)] hover:underline"
            >
              ghostkey316@proton.me
            </a>
          </p>
          <p className="mt-3 text-sm text-[var(--color-ember-text-muted)]">
            The Vaultfire team is solo, unfunded, and building in public. We will tell
            you the truth about what we know and what we don&apos;t. The mission —
            making human thriving more profitable than extraction — only works if we
            are honest about everything else along the way.
          </p>
        </Section>

        <div className="mt-12 flex flex-wrap gap-3 text-sm">
          <a
            href="/terms"
            className="rounded-lg border border-white/20 px-4 py-2 hover:border-white/40"
          >
            Terms of Service
          </a>
          <a
            href="/privacy"
            className="rounded-lg border border-white/20 px-4 py-2 hover:border-white/40"
          >
            Privacy Policy
          </a>
          <a
            href="/security"
            className="rounded-lg border border-white/20 px-4 py-2 hover:border-white/40"
          >
            Security
          </a>
        </div>
      </div>
    </main>
  );
}

function Section({ title, children }: { title: string; children: React.ReactNode }) {
  return (
    <section className="mt-10">
      <h2 className="text-2xl font-bold mb-3">{title}</h2>
      <div className="text-base leading-relaxed text-[var(--color-ember-text)] space-y-1">
        {children}
      </div>
    </section>
  );
}

function A({ href, children }: { href: string; children: React.ReactNode }) {
  return (
    <a href={href} className="text-[var(--color-ember-accent)] hover:underline">
      {children}
    </a>
  );
}
