import Link from "next/link";
import {
  SOURCE_ARCHIVE_URL,
  SOURCE_REPOSITORY_URL,
} from "../lib/site";

export default function SiteTrustNotice() {
  return (
    <footer className="site-trust-notice" aria-label="Privacy and public source">
      <div className="site-trust-inner">
        <p className="site-trust-label">Privacy &amp; Public Source</p>
        <h2>No accounts. No forms. No ads. No behavioral analytics.</h2>
        <p>
          ToshinSamuels.com is designed not to ask for, sell, or intentionally
          profile visitors&apos; personal information. It does not use visitor
          accounts, contact forms, advertising pixels, session replay,
          browser fingerprinting, first-party analytics, or tracking cookies.
        </p>
        <p>
          Hosting, network, and security providers may still process limited
          technical information—such as IP addresses and request logs—to
          deliver and protect the site. External links leave
          ToshinSamuels.com and are governed by the destination&apos;s own
          policies.
        </p>
        <p>
          The application code for this published release is available for
          public inspection under an open-source software license. Source
          publication improves transparency, but it is not a permanent
          guarantee against every vulnerability, compromised dependency,
          hosting incident, or future change.
        </p>

        <div className="site-trust-links">
          <Link href="/privacy-and-source" className="trust-link">
            Read the full disclosure
          </Link>
          <a href={SOURCE_ARCHIVE_URL} className="trust-link" download>
            Download release source
          </a>
          {SOURCE_REPOSITORY_URL ? (
            <a
              href={SOURCE_REPOSITORY_URL}
              target="_blank"
              rel="noopener noreferrer"
              className="trust-link"
            >
              View source on GitHub ↗
            </a>
          ) : (
            <span className="source-status">
              Public GitHub mirror: awaiting publication
            </span>
          )}
        </div>
      </div>
    </footer>
  );
}
