import { LegalDocument } from '@/components/marketing/legal-document';
import { site } from '@/lib/marketing';
import { pageMetadata } from '@/lib/seo';

export const metadata = pageMetadata('Terms', '/terms', `Terms of use for ${site.name}. This is a template pending legal review.`);

const sections = [
  { id: 'agreement', heading: 'Agreement', paragraphs: [`These terms govern use of ${site.name}. They are a template and are not legal advice.`] },
  { id: 'accounts', heading: 'Accounts', paragraphs: ['A workspace is created by the person who registers. That person is responsible for the team they invite and for activity under their login.'] },
  { id: 'wallet', heading: 'Wallet and labels', paragraphs: ['Labels are paid from a prepaid wallet. The amount charged is the total shown before purchase. Refunds, when a cancellation is allowed, return to the wallet.'] },
  { id: 'acceptable-use', heading: 'Acceptable use', paragraphs: ['Do not use the service to ship prohibited goods, to interfere with the platform, or to misrepresent a shipment.'] },
  { id: 'liability', heading: 'Liability', paragraphs: ['Courier performance is the courier’s responsibility. The platform passes tracking updates through and does not guarantee delivery times in this template.'] },
  { id: 'contact', heading: 'Contact', paragraphs: [`Questions about these terms can be sent to ${site.supportEmail}.`] },
];

export default function TermsPage() {
  return <LegalDocument title="Terms of use" updated="November 5, 2026" sections={sections} />;
}
