/* Shared stylesheet for CalcuTrend's standalone static pages (privacy, terms,
   reset). Mirrors the app theme tokens; light is the default, dark applies
   when the inline head script sets data-theme="dark" from localStorage. */
:root {
  --bg: #f4efe6;
  --panel: #fbf8f1;
  --border: #e6ddca;
  --text: #2a2620;
  --text-2: #5a5446;
  --muted: #8a8070;
  --accent: #3b6fe0;
  --up: #0a9d63;
  --down: #e23b4e;
  --r: 8px;
  --t-xs: 12px;
  --t-sm: 12.5px;
  --t-md: 14px;
  --t-lg: 16px;
  --t-xl: 20px;
  --t-2xl: 25px;
  --t-3xl: 31px;
}
[data-theme="dark"] {
  --bg: #0b0e14;
  --panel: #11151d;
  --border: #222a38;
  --text: #e7ebf3;
  --text-2: #aab2c5;
  --muted: #707a90;
  --accent: #5b8cff;
  --up: #26c281;
  --down: #f0616d;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 720px;
  padding: 48px 22px 80px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  font-size: var(--t-lg);
  line-height: 1.65;
}

h1 { font-size: var(--t-3xl); line-height: 1.25; margin: 0 0 4px; }
h2 { font-size: var(--t-xl); margin: 30px 0 8px; }
p, li { color: var(--text-2); }
strong { color: var(--text); }
a { color: var(--accent); }

.muted { color: var(--muted); }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); text-decoration: underline; }
.note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: var(--t-sm);
}

/* --- Reset-password page --- */
.card {
  max-width: 400px;
  margin: 24px auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px;
}
.card h1 { font-size: var(--t-xl); margin: 0 0 6px; }
.card .sub { color: var(--muted); font-size: var(--t-sm); margin: 0 0 18px; }

.card input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font: inherit;
}
.card input:focus { outline: none; border-color: var(--accent); }
.card input::placeholder { color: var(--muted); }

.btn-submit {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-submit:hover { filter: brightness(0.9); }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

.msg { min-height: 18px; font-size: var(--t-sm); margin-top: 10px; }
.msg.ok { color: var(--up); }
.msg.err { color: var(--down); }
