/* JarMoney website: privacy policy and home page (task 6.8, DEC-39). */
:root {
  --bg: #fbf8ff;
  --surface: #ffffff;
  --text: #1b1b21;
  --muted: #46464f;
  --accent: #3f5aa9;
  --line: #e3e1ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131318;
    --surface: #1b1b21;
    --text: #e4e1e9;
    --muted: #c7c5d0;
    --accent: #b4c5ff;
    --line: #34343b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

header.site .brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
nav.lang a { margin-left: 12px; color: var(--accent); }
nav.lang a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

h1 { font-size: 28px; line-height: 1.25; margin: 0 0 4px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 15px; }
a { color: var(--accent); }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  margin: 20px 0;
}

table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

footer { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 12px; }
