import type { Metadata } from "next";
import Link from "next/link";
import { Navbar } from "@/components/public/Navbar";
import { Footer } from "@/components/public/Footer";

export const metadata: Metadata = {
  title: "Terms of Use",
  description:
    "Terms of use for the Belgian Bitcoin Embassy website, including education-only scope, risk warnings, and user responsibilities.",
  openGraph: {
    title: "Terms of Use - Belgian Bitcoin Embassy",
    description:
      "Terms governing access, risk disclosures, no-investment-advice scope, and liability limits for the Belgian Bitcoin Embassy platform.",
  },
  alternates: { canonical: "/terms" },
};

export default function TermsPage() {
  return (
    <>
      <Navbar />
      <div className="min-h-screen">
        <div className="max-w-3xl mx-auto px-8 pt-16 pb-24">
          <h1 className="text-4xl font-black mb-3">Terms of Use</h1>
          <p className="text-sm text-on-surface-variant mb-8">Last updated: April 3, 2026</p>

          <div className="space-y-8 text-on-surface-variant leading-relaxed">
            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Acceptance and Changes</h2>
              <p>
                By accessing or using this website, you agree to these Terms of Use. We may
                update these terms from time to time, and continued use after updates means you
                accept the revised terms.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Nature of the Service</h2>
              <p>
                This website provides general Bitcoin education and community information.
                Nothing on this website is financial, investment, legal, or tax advice.
                We do not make recommendations to buy, sell, or hold Bitcoin or any other
                crypto-asset. Content is general in nature and not tailored to your personal
                circumstances.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Crypto Risk Warning</h2>
              <p>
                Crypto-assets are highly volatile and you can lose all of your money.
                Crypto-assets are not regulated in the same way as traditional financial
                products. Regulatory rules may change, and availability may differ by
                jurisdiction. Always do your own research and consult a qualified professional
                before making financial decisions.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">MiCA and Regulatory Position</h2>
              <p>
                Belgian Bitcoin Embassy presents this website as an educational platform and not
                as a crypto-asset service provider. If the nature of our activities changes, we
                may update these terms and related legal pages.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Content and Third Parties</h2>
              <p>
                Some content is curated from the Nostr network. We do not claim ownership of
                third-party content. Local moderation may hide or limit content on this site,
                but does not change content on the Nostr network itself.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">User Conduct</h2>
              <p>
                Users interacting via Nostr (likes, comments) are expected to behave
                respectfully. The moderation team reserves the right to locally hide
                content or block pubkeys that violate community standards.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Paid and Commercial Features</h2>
              <p>
                Certain features may involve Lightning payments, such as paid public board
                messages. Any such feature is optional and does not change the educational
                nature of the site.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Affiliate and Sponsorship Transparency</h2>
              <p>
                As of the last updated date above, we do not earn referral fees from links on
                this website. If sponsored or affiliate content is added in the future, it will
                be clearly disclosed.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Disclaimer and Liability</h2>
              <p>
                This platform is provided on an &quot;as is&quot; and &quot;as available&quot; basis without
                warranties of any kind. To the maximum extent permitted by law, Belgian Bitcoin
                Embassy is not liable for losses or damages resulting from your use of this site
                or reliance on its content.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Governing Law</h2>
              <p>
                These terms are governed by Belgian law, without prejudice to mandatory consumer
                protections that apply in your jurisdiction.
              </p>
            </section>

            <section>
              <h2 className="text-xl font-bold text-on-surface mb-4">Contact</h2>
              <p>
                For terms-related questions, contact us through our{" "}
                <Link href="/#community" className="text-primary hover:underline">
                  community channels
                </Link>.
              </p>
            </section>
          </div>
        </div>
      </div>
      <Footer />
    </>
  );
}
