/* Shared styling for the standalone legal pages (privacy.html, terms.html).
   Self-contained: self-hosted fonts, the app's palette, light/dark aware.
   Kept separate from the app's styles.css so these pages have no JS/build
   dependency and load as plain documents. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700.woff2') format('woff2');
}

:root {
  --bg: #ececea;
  --fg: #1a1a1a;
  --fg-muted: #5f5f5f;
  --red: #e0263f;
  --hairline: #d3d3ce;
  --panel: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f2f2f2;
    --fg-muted: #a6a6a6;
    --red: #ef4a5f;
    --hairline: #333;
    --panel: #1a1a1a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Poppins', Futura, 'Century Gothic', Avenir, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.legal-home {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--red);
  text-decoration: none;
}
.legal-home:hover {
  text-decoration: underline;
}

.legal h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  margin: 0 0 6px;
}

.legal .updated {
  color: var(--fg-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 34px 0 10px;
}

.legal p,
.legal li {
  font-size: 16px;
}

.legal a {
  color: var(--red);
}

.legal ul {
  padding-left: 22px;
}
.legal li {
  margin: 6px 0;
}

.legal .tldr {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 8px 0 28px;
}
.legal .tldr strong {
  font-weight: 600;
}

.legal .note {
  color: var(--fg-muted);
  font-size: 14px;
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding-top: 16px;
}

.legal-footer {
  margin-top: 40px;
  font-size: 15px;
}
.legal-footer a {
  color: var(--red);
  text-decoration: none;
}
.legal-footer a:hover {
  text-decoration: underline;
}
