/* The privacy policy, the terms, and the company footer they and the
   404 page carry. Written by hand on top of
   styles.css (the Lovable export's compiled Tailwind, which holds only the
   classes the export used): its colour variables, nothing else. */

.legal-page {
  background: var(--hero-surface);
  min-height: 100vh;
}

.legal-article {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 56px 72px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-article h1 {
  font-size: 38px;
  font-weight: 550;
  line-height: 1.15;
}

.legal-article .updated {
  color: var(--muted-foreground);
  margin-top: 10px;
  font-size: 13px;
}

.legal-article h2 {
  font-size: 21px;
  font-weight: 550;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-article h3 {
  font-size: 16px;
  font-weight: 550;
  margin-top: 26px;
}

.legal-article p,
.legal-article ul,
.legal-article table {
  margin-top: 12px;
}

.legal-article ul {
  padding-left: 22px;
  list-style: disc;
}

.legal-article li + li {
  margin-top: 6px;
}

.legal-article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-article strong {
  font-weight: 600;
}

.legal-article .callout {
  background: var(--soft-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

.legal-article .table-wrap {
  overflow-x: auto;
}

.legal-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.legal-article th,
.legal-article td {
  border-bottom: 1px solid var(--border);
  padding: 10px 10px 10px 0;
  text-align: left;
  vertical-align: top;
}

.legal-article th {
  font-weight: 550;
}

/* The homepage's "what the app does" line under its cards, with the
   link Google's review looks for (platform/docs/app_verification.md). */
.app-fine {
  margin-top: 28px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

.app-fine a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The company details Google and Meta compare with official papers. */
.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .footer-links {
  display: flex;
  gap: 18px;
  font-size: 12px;
}

.site-footer .company {
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
}

.site-footer .company span {
  display: block;
}

/* Printed (or saved as PDF), the dark theme would be light text on white
   paper: print dark on white, the page's own links spelled out. */
@media print {
  :root {
    --background: #fff;
    --foreground: #111;
    --hero-surface: #fff;
    --soft-surface: #f4f4f4;
    --muted-foreground: #444;
    --border: #ccc;
    --primary: #111;
  }

  body,
  .legal-page {
    background: #fff;
    color: #111;
  }

  .site-header img,
  .site-footer img {
    filter: invert(1);
  }

  .legal-article {
    max-width: none;
    padding-block: 0;
    font-size: 11pt;
  }

  .legal-article h2 {
    break-after: avoid;
  }

  .legal-article tr,
  .legal-article .callout {
    break-inside: avoid;
  }

  .legal-article a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }
}

@media (max-width: 640px) {
  .legal-article {
    padding-block: 36px 48px;
  }

  .legal-article h1 {
    font-size: 30px;
  }
}

/* The home page's ad measurement (assets/measure.js): the notice Meta's
   Business Tools Terms want on a page that runs the pixel, and the
   consent banner for visitors in the EEA, the UK and Switzerland. Allow
   and No thanks carry the same weight. */
.ad-notice {
  margin-block: 0 32px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
}

.ad-notice button,
.ad-notice a {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ad-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 50;
  max-width: 520px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.18);
  font-size: 14px;
  line-height: 1.55;
}

.ad-consent[hidden],
.ad-notice[hidden] {
  display: none;
}

.ad-consent p + p {
  margin-top: 6px;
}

.ad-consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ad-consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ad-consent-actions button {
  flex: 1;
  height: 38px;
  border: 1px solid var(--foreground);
  border-radius: 6px;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
}

.ad-consent-actions button:focus-visible,
.ad-notice button:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}
