/* FineFree legal pages (privacy.html, terms.html). Mirrors apps/mobile/lib/theme/app_theme.dart:
   light = cream page, white cards, deep teal text, orange accent; dark = deep teal surfaces. */
:root {
  color-scheme: light dark;
  --bg: #FBF5EE;
  --surface: #FFFFFF;
  --border: #EDE4D9;
  --text-primary: #164A5A;
  --text-body: #3F5A64;
  --text-muted: #576C75;
  --link: #B45309;
  --accent: #F59A2B;
  --header-bg: #164A5A;
  --header-bg-image: linear-gradient(135deg, #164A5A, #1F5E70);
  --free: #F59A2B;
  --shadow-card: 0 2px 12px rgba(22,74,90,0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F2A33;
    --surface: #173844;
    --border: #2B4F5C;
    --text-primary: #EAF2F4;
    --text-body: #C6D8DD;
    --text-muted: #A9BEC5;
    --link: #FFB04D;
    --accent: #FFB04D;
    --header-bg: #173844;
    --header-bg-image: linear-gradient(135deg, #0F2A33, #1F5E70);
    --free: #FFB04D;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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;
  border-bottom: 4px solid var(--accent);
}
.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.18);
  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 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.legal section h2 { font-size: 15px; font-weight: 800; color: var(--link); margin-bottom: 10px; }
.legal section p, .legal section li { font-size: 14px; color: var(--text-body); }
.legal section p + p { margin-top: 10px; }
.legal ul { padding-left: 18px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text-primary); }
.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; }

/* FineFree wordmark: "Fine" in the text colour, "Free" in orange */
.wm { font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.wm i { font-style: normal; color: var(--free); }
