/**
 * llmindex.io — terms of service
 * Author:  Simon-Pierre Boucher
 * Contact: contact@spboucher.ai
 * License: Proprietary — © Simon-Pierre Boucher, all rights reserved
 */
import type { Metadata } from 'next';

export const metadata: Metadata = { title: 'Terms of Service' };
export const revalidate = 86400;

const UPDATED = '2026-08-05';

export default function TermsPage() {
  return (
    <div className="mx-auto max-w-3xl space-y-8">
      <div className="space-y-2">
        <h1 className="text-2xl font-bold text-zinc-900 sm:text-3xl">Terms of Service</h1>
        <p className="text-sm text-zinc-500">Last updated: {UPDATED}</p>
      </div>

      <section className="space-y-3 text-sm leading-relaxed text-zinc-600">
        <h2 className="text-lg font-semibold text-zinc-900">1. Who provides this service</h2>
        <p>
          LLM Index (www.llmindex.io, including its public API — the &ldquo;Service&rdquo;) is
          operated by <span className="font-medium text-zinc-800">Simon-Pierre Boucher</span>{' '}
          (&ldquo;we&rdquo;, &ldquo;us&rdquo;). Contact:{' '}
          <a className="underline hover:text-emerald-600" href="mailto:contact@spboucher.ai">contact@spboucher.ai</a>.
          By using the Service you accept these terms.
        </p>
      </section>

      <section className="space-y-3 text-sm leading-relaxed text-zinc-600">
        <h2 className="text-lg font-semibold text-zinc-900">2. What the Service is</h2>
        <p>
          LLM Index publishes independent, methodology-driven evaluations of large language models:
          scores, confidence intervals, sub-metrics, model responses, judge verdicts and an
          efficiency frontier. Scores are statistical estimates produced by the published
          methodology — they are <em>opinions grounded in a documented measurement process</em>,
          not statements of objective fact about any model or vendor, and they change as new runs
          complete and the methodology evolves (semver-versioned with a public changelog).
        </p>
      </section>

      <section className="space-y-3 text-sm leading-relaxed text-zinc-600">
        <h2 className="text-lg font-semibold text-zinc-900">3. Acceptable use</h2>
        <ul className="list-disc space-y-2 pl-5">
          <li>Respect the published API rate limits (60 requests/minute anonymous; 600 with an issued key). Do not circumvent limits, scrape aggressively, disrupt, probe or overload the Service.</li>
          <li>Do not attempt to extract non-public material (answer keys, anchor item instantiations, credentials) or to interfere with live benchmark runs.</li>
          <li>Do not misrepresent LLM Index data as your own measurement, and do not present altered figures as ours.</li>
        </ul>
      </section>

      <section className="space-y-3 text-sm leading-relaxed text-zinc-600">
        <h2 className="text-lg font-semibold text-zinc-900">4. Using our data &amp; attribution</h2>
        <p>
          You may quote, chart and cite scores and rankings from the Service — including
          commercially — provided you attribute them to <span className="font-medium text-zinc-800">
          &ldquo;LLM Index (llmindex.io)&rdquo;</span> with the index version shown alongside the
          data. Bulk redistribution of the dataset, or products substantially reproducing the
          Service, require prior written permission. The platform&apos;s source code, design, logo
          and content are © Simon-Pierre Boucher, all rights reserved.
        </p>
      </section>

      <section className="space-y-3 text-sm leading-relaxed text-zinc-600">
        <h2 className="text-lg font-semibold text-zinc-900">5. Third-party names</h2>
        <p>
          Model and provider names and logos appear solely to identify the evaluated systems
          (nominative use). They remain trademarks of their respective owners; no affiliation,
          sponsorship or endorsement is implied — by them of us, or by us of them.
        </p>
      </section>

      <section className="space-y-3 text-sm leading-relaxed text-zinc-600">
        <h2 className="text-lg font-semibold text-zinc-900">6. No warranty · limitation of liability</h2>
        <p>
          The Service is provided <em>&ldquo;as is&rdquo;</em> and <em>&ldquo;as available&rdquo;</em>,
          without warranties of any kind, express or implied — including accuracy, completeness,
          fitness for a particular purpose or uninterrupted availability. Do not base high-stakes
          decisions solely on an index score. To the maximum extent permitted by law, our total
          liability arising from the use of the Service is limited to the amount you paid us for it
          (zero for the free Service). Nothing here excludes liability that cannot legally be
          excluded.
        </p>
      </section>

      <section className="space-y-3 text-sm leading-relaxed text-zinc-600">
        <h2 className="text-lg font-semibold text-zinc-900">7. Corrections &amp; disputes about scores</h2>
        <p>
          Model vendors and users may dispute a result by writing to{' '}
          <a className="underline hover:text-emerald-600" href="mailto:contact@spboucher.ai">contact@spboucher.ai</a>{' '}
          with specifics. Substantiated issues are corrected through a <em>new</em> score run
          (history is immutable) and acknowledged in the public changelog.
        </p>
      </section>

      <section className="space-y-3 text-sm leading-relaxed text-zinc-600">
        <h2 className="text-lg font-semibold text-zinc-900">8. Changes, suspension, governing law</h2>
        <p>
          We may modify or discontinue the Service or these terms at any time; the date above
          reflects the current version. We may suspend access that violates these terms. These
          terms are governed by the laws of the Province of Québec and the federal laws of Canada
          applicable therein; disputes belong to the courts of Québec, Canada.
        </p>
      </section>
    </div>
  );
}
