/* GENERATED from frontend/src/pages/LegalPages.css by frontend/scripts/apexPages.tsx — do not edit. */
/* Public legal pages (/privacy, /terms).
   Self-contained — does NOT depend on HomePage.css, so marketing-CSS edits
   can't break the legal pages. Follows the system theme: the light palette below
   is the default; the `[data-theme="dark"]` block overrides it when the document
   theme (set by ThemeProvider from the OS preference) is dark. */

.legal-page {
  --legal-bg: #f8fafc;
  --legal-surface: #ffffff;
  --legal-text: #0f172a;
  --legal-muted: #475569;
  --legal-border: #e2e8f0;
  --legal-accent: #2563eb;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--legal-bg);
  color: var(--legal-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}

/* Dark palette — applied when the document theme is dark (ThemeProvider mirrors
   the OS preference for unauthenticated visitors). Pinned to the same true-black
   aesthetic as the marketing landing (HomePage.css black-canvas theme) so the
   public-facing pages share one identity: black canvas, charcoal surfaces, a
   brightened blue accent that glows rather than a slate-navy wash. */
[data-theme="dark"] .legal-page {
  --legal-bg: #000000;
  --legal-surface: #0d0d11;
  --legal-text: #f4f4f7;
  --legal-muted: #9a9aa7;
  --legal-border: #24242d;
  --legal-accent: #6aa8ff;
}

/* ---- Top bar ---- */
.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--legal-border);
  background: var(--legal-surface);
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--legal-text);
  text-decoration: none;
}
.legal-brand-mark {
  width: 28px;
  height: 28px;
  display: block;
}
.legal-back {
  color: var(--legal-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.legal-back:hover {
  color: var(--legal-accent);
}

/* ---- Article ---- */
.legal-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem 3.5rem;
}
.legal-article {
  width: 100%;
  max-width: 760px;
}
.legal-article h1 {
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.legal-updated {
  color: var(--legal-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.legal-article section {
  margin-bottom: 1.6rem;
}
.legal-article h2 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.legal-article p {
  margin: 0 0 0.6rem;
  color: var(--legal-text);
}
.legal-article ul {
  margin: 0 0 0.6rem;
  padding-left: 1.25rem;
}
.legal-article li {
  margin-bottom: 0.55rem;
}
.legal-article a {
  color: var(--legal-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-article a:hover {
  text-decoration: none;
}

/* ---- Footer ---- */
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--legal-border);
  background: var(--legal-surface);
  color: var(--legal-muted);
  font-size: 0.875rem;
}
.legal-footer-links {
  display: flex;
  gap: 1.25rem;
}
.legal-footer-links a {
  color: var(--legal-muted);
  text-decoration: none;
}
.legal-footer-links a:hover {
  color: var(--legal-accent);
}

@media (max-width: 520px) {
  .legal-topbar,
  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Static apex pages: no ThemeProvider, so dark mode follows the OS preference. */
@media (prefers-color-scheme: dark) {
  .legal-page {
  --legal-bg: #000000;
  --legal-surface: #0d0d11;
  --legal-text: #f4f4f7;
  --legal-muted: #9a9aa7;
  --legal-border: #24242d;
  --legal-accent: #6aa8ff;
}
}
body { margin: 0; }
