33 lines · 1.2 KB
/** Bump whenever the Terms or Privacy Policy change materially; signups record the version they accepted. */
export const TERMS_VERSION = "2026-10-13.1";
export const LEGAL_LAST_UPDATED = "October 13, 2026";

/** Operator-specific facts from the LEGAL_* / DMCA_* / SECURITY_* vars. Unset values render as placeholders. */
export type LegalInfo = {
  forgeName: string;
  publicUrl: string;
  entity: string | null;
  contactEmail: string | null;
  address: string | null;
  jurisdiction: string | null;
  dmcaEmail: string | null;
  securityEmail: string | null;
  supportEmail: string | null;
  /** True while any of the operator vars is unset: every legal page shows a draft banner. */
  draft: boolean;
};

export const LEGAL_PAGES = [
  { to: "/terms", label: "Terms of Service" },
  { to: "/privacy", label: "Privacy Policy" },
  { to: "/acceptable-use", label: "Acceptable Use" },
  { to: "/cookies", label: "Cookies" },
  { to: "/dmca", label: "Copyright (DMCA)" },
  { to: "/security", label: "Security" },
  { to: "/support", label: "Support" },
] as const;

/** Minimum ages from the Terms: 13 generally, 16 in the EEA/UK without parental consent. */
export const MINIMUM_AGE = 13;
export const MINIMUM_AGE_EEA = 16;