---
import BaseLayout from '../layouts/BaseLayout.astro';
import { buildOgImage, buildBreadcrumbs } from '../lib/seo';

const ogImage = buildOgImage(undefined, 'site', 'Unique legal page');
const breadcrumbs = buildBreadcrumbs([
  { name: 'Home', url: '/' },
  { name: 'Legal', url: '/legal/' },
]);
---

<BaseLayout
  title="Legal"
  description="Privacy, terms, affiliate disclosure, and trademark notes for Unique."
  subheader="The legal mumbo jumbo, kept short and honest."
  ogImage={ogImage}
  jsonLd={breadcrumbs}
>
  <article>
    <h2>Privacy</h2>
    <p>
      Unique doesn't run analytics, ad pixels, or third-party trackers. The
      site sets no cookies of its own. Your visit produces a normal web-server
      access log entry (IP, user-agent, referrer, requested path) at our
      hosting provider, kept only for the rolling window needed to investigate
      abuse and outages, and never sold or shared.
    </p>
    <p>
      Outbound links go to third-party sites that have their own privacy
      practices; we have no control over those.
    </p>

    <h2>Affiliate disclosure</h2>
    <p>
      Some outbound links — most often to Amazon — are affiliate links. If you
      buy something after clicking one, we may earn a small commission at no
      additional cost to you. Affiliate links are marked with an
      <strong>Affiliate</strong> badge and a one-line disclosure on each page
      where they appear. Affiliate revenue does not influence what we cover or
      how we cover it; nothing on this site is sponsored or paid placement.
    </p>

    <h2>Trademarks &amp; copyright</h2>
    <p>
      All product names, logos, screenshots, and brand marks belong to their
      respective owners and appear here under fair use for editorial review
      and commentary. If you're a rights-holder and would like an image
      removed or attribution corrected, please get in touch.
    </p>
    <p>
      Original writing on Unique is © {new Date().getFullYear()} Unique, all
      rights reserved.
    </p>

    <h2>Use of the site</h2>
    <p>
      Content is provided as-is for informational purposes; we make no
      warranty that any product covered here will suit your particular
      situation. Use your own judgement before buying or installing anything.
    </p>

    <h2>Contact</h2>
    <p>
      Questions, corrections, or takedown requests: reach out via the address
      on the <a href="/about/">About</a> page.
    </p>
  </article>

  <style>
    article h2 {
      margin-top: 2rem;
      font-size: 1.15rem;
    }
    article h2:first-of-type { margin-top: 0; }
    article p { margin: 0.7rem 0; }
  </style>
</BaseLayout>
