import { LegalDocument } from '@/components/marketing/LegalDocument';
import type { LegalSection } from '@/components/marketing/LegalDocument';
import { pageMetadata } from '@/lib/site';

export const metadata = pageMetadata({
  title: 'Terms of service (draft)',
  description:
    'Draft PintRush terms of service, pending lawyer review: venue accounts, free guest play, no wagering or paid entry, prizes, content and acceptable use.',
  path: '/legal/terms',
});

const sections: LegalSection[] = [
  {
    id: 'agreement',
    title: 'Agreement',
    body: (
      <p>
        These terms govern your use of PintRush, including this website, the guest game and the venue tools. By using PintRush you agree to
        them. If you use PintRush on behalf of a venue, you confirm you may bind that venue. [Contracting entity — to be confirmed.]
      </p>
    ),
  },
  {
    id: 'service',
    title: 'The service',
    body: (
      <p>
        PintRush lets venues run live trivia games on their screens that guests join from their own phones in a web browser. Features, game
        content and availability may change, particularly during the pilot.
      </p>
    ),
  },
  {
    id: 'venue-accounts',
    title: 'Venue accounts',
    body: (
      <ul>
        <li>Keep sign-in details confidential and give access only to staff who need it.</li>
        <li>Keep venue information accurate and up to date.</li>
        <li>You are responsible for activity under your venue’s account and for how games are run in your venue.</li>
      </ul>
    ),
  },
  {
    id: 'guest-play',
    title: 'Guest play',
    body: (
      <p>
        Playing is free for guests and needs no account. Nicknames and team names must not be offensive, misleading or impersonate others. We
        and the venue may rename or remove any player.
      </p>
    ),
  },
  {
    id: 'no-wagering',
    title: 'No wagering, no paid entry',
    body: (
      <p>
        PintRush is skill-based entertainment. There is no paid entry and no wagering of any kind. In-game points, power-ups and rankings have
        no monetary value and cannot be bought, sold or exchanged.
      </p>
    ),
  },
  {
    id: 'prizes',
    title: 'Prizes',
    body: (
      <p>
        Any prizes are offered solely by the venue, which is responsible for complying with all applicable laws and regulations. Prize
        promotions are regulated differently by jurisdiction and should be reviewed locally before anything of value is offered. [Venue prize
        obligations — to be reviewed per jurisdiction.]
      </p>
    ),
  },
  {
    id: 'content',
    title: 'Content and intellectual property',
    body: (
      <p>
        The PintRush software, brand and trivia content belong to PintRush or its licensors. Our trivia is original; Music Mayhem does not play
        recordings or reproduce lyrics. Venues remain responsible for any public-performance licences for music they play themselves.
      </p>
    ),
  },
  {
    id: 'acceptable-use',
    title: 'Acceptable use',
    body: (
      <ul>
        <li>No cheating, bots or automated play outside features we provide.</li>
        <li>No interfering with the service, other players or other venues.</li>
        <li>No scraping, reverse engineering or attempts to access data you are not entitled to.</li>
      </ul>
    ),
  },
  {
    id: 'pilot-fees',
    title: 'Pilot program and fees',
    body: (
      <p>
        Prices shown on this website are indicative pilot pricing. No payment is taken through the website; any fees are set out in a separate
        agreement with the venue. [Pilot agreement terms — to be drafted.]
      </p>
    ),
  },
  {
    id: 'disclaimers',
    title: 'Disclaimers',
    body: <p>[Warranty disclaimers — to be drafted by counsel.]</p>,
  },
  {
    id: 'liability',
    title: 'Limitation of liability',
    body: <p>[Limitation of liability — to be drafted by counsel.]</p>,
  },
  {
    id: 'termination',
    title: 'Suspension and termination',
    body: (
      <p>
        We may suspend or end access for breaches of these terms or to protect players, venues or the service. Venues may stop using PintRush at
        any time, subject to any separate agreement.
      </p>
    ),
  },
  {
    id: 'law',
    title: 'Governing law',
    body: <p>[Governing law and venue for disputes — to be confirmed by counsel.]</p>,
  },
  {
    id: 'contact',
    title: 'Contact',
    body: <p>[Contact email and postal address — to be confirmed.]</p>,
  },
];

export default function TermsPage() {
  return (
    <LegalDocument
      title="Terms of service"
      updated="[date of publication]"
      intro={<p>The ground rules for venues and guests using PintRush. Short version: play fair, keep it friendly, and no wagering.</p>}
      sections={sections}
    />
  );
}
