/* Shared PostMo web theme. Mirrors mobile/lib/theme.dart: Hybrid Aurora (light: white page, purple #5E169A buttons, deep purple header)
   and Midnight Aurora (dark, when the visitor's device is in dark mode). */
:root {
  color-scheme: light dark;
  --gradient-from: #5E169A;
  --gradient-to: #8E2FBB;
  --link: #5E169A;
  --bg: #FFFFFF;
  --surface: #ffffff;
  --border: #E3E3EA;
  --text-primary: #1B1530;
  --text-body: #49454F;
  --text-secondary: #6B6678;
  --text-muted: #756F85;
  --text-on-dark: #ffffff;
  --radius: 20px;
  --shadow-card: 0 4px 24px rgba(27,21,48,0.08), 0 1px 4px rgba(27,21,48,0.04);
  /* The app's filled button: Hybrid Aurora primary / onPrimary. */
  --btn-bg: #5E169A;
  --btn-fg: #ffffff;
  --header-bg: #260450;
  --header-bg-image: linear-gradient(135deg, #260450, #5E169A);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0620;
    --surface: #17103A;
    --border: #3A2F73;
    --link: #C9B3FF;
    --text-primary: #F1ECFF;
    --text-body: #C3B8E8;
    --text-secondary: #B3A9D6;
    --text-muted: #8478B5;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --btn-bg: #B794FF;
    --btn-fg: #0B0620;
    --gradient-from: #7B2CFF;
    --gradient-to: #E91EFF;
    --header-bg: #2A0A8F;
    --header-bg-image: linear-gradient(135deg, #190B52, #3A1D9E);
  }
}

/* Buttons: stadium-shaped, 15px / w700, like the app's FilledButton. */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  padding: 12px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.outline { background: transparent; color: var(--btn-bg); }

/* Text pages (FAQ, Terms, Privacy). */
body.legal {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  padding: 0 16px 60px;
}
.legal header {
  background: var(--header-bg);
  background-image: var(--header-bg-image);
  color: #fff;
  padding: 40px 24px 32px;
  margin: 0 -16px 32px;
  text-align: center;
}
.legal header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.legal header p  { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.legal .badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.legal .container { max-width: 680px; margin: 0 auto; }
.legal section, .legal details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.legal section { padding: 20px 22px; margin-bottom: 14px; }
.legal section h2 { font-size: 14px; font-weight: 700; color: var(--link); margin-bottom: 10px; }
.legal section p, .legal section li { font-size: 13.5px; color: var(--text-body); }
.legal section p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 18px; }
.legal ul li, .legal ol li { margin-bottom: 6px; }
.legal a { color: var(--link); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal footer { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 32px; }

/* PostMo wordmark text */
.wm{display:inline-block;font-family:'Plus Jakarta Sans',-apple-system,'Segoe UI',Roboto,sans-serif;font-style:italic;font-weight:800;letter-spacing:-.03em;color:#8B52DB;white-space:nowrap}
.wm b{font-weight:800;color:#4B0C93}
.wm sup{display:inline-block;vertical-align:top;margin-left:.08em;padding:.12em .45em;border-radius:.5em;background:#5B0FD9;color:#fff;font-size:.36em;font-weight:800;letter-spacing:0;line-height:1.15;position:relative;top:.1em}
.wm.on-dark b{color:#fff}
@media(prefers-color-scheme:dark){.wm b{color:#fff}}
