/* Standalone static pages (privacy, about, terms, contact) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  background: #ffffff;
  color: #0f172a;
  -webkit-text-size-adjust: 100%;
}
html.dark body { background: #0e0e0e; color: #e2e8f0; }

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
html.dark a { color: #818cf8; }

.page-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}
html.dark .page-nav { background: rgba(15,23,42,0.85); border-bottom-color: #1e293b; }
.page-nav .container {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.page-nav .brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.05rem; }
.page-nav .brand .logo { width: 28px; height: 28px; }
.page-nav .home { color: inherit; text-decoration: none; }
.page-nav .home:hover { text-decoration: none; }
.page-nav .actions { display: flex; gap: 0.5rem; }
.page-nav .actions a {
  color: #475569; font-size: 0.875rem; padding: 0.375rem 0.75rem; border-radius: 0.5rem;
}
html.dark .page-nav .actions a { color: #cbd5e1; }
.page-nav .actions a:hover { background: #f1f5f9; }
html.dark .page-nav .actions a:hover { background: #1e293b; }

main {
  max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem;
}
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 0.75rem; letter-spacing: -0.005em; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.lead { color: #64748b; font-size: 1rem; margin: 0 0 2rem; }
html.dark .lead { color: #94a3b8; }
p, li { font-size: 0.975rem; }
ul, ol { padding-left: 1.5rem; }
ul li, ol li { margin: 0.25rem 0; }
.meta { color: #94a3b8; font-size: 0.85rem; margin-bottom: 1.5rem; }
.box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.75rem;
  padding: 1rem 1.25rem; margin: 1.25rem 0;
}
html.dark .box { background: #0f172a; border-color: #1e293b; }
.box strong { color: #0f172a; }
html.dark .box strong { color: #f1f5f9; }

footer.page-footer {
  border-top: 1px solid #e2e8f0; padding: 1.25rem; margin-top: 3rem;
  text-align: center; color: #94a3b8; font-size: 0.8rem;
}
html.dark footer.page-footer { border-top-color: #1e293b; }
footer.page-footer a { color: inherit; }

.theme-toggle {
  background: none; border: 1px solid #e2e8f0; border-radius: 0.5rem;
  width: 36px; height: 36px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; color: inherit;
}
html.dark .theme-toggle { border-color: #1e293b; }
.theme-toggle:hover { background: #f1f5f9; }
html.dark .theme-toggle:hover { background: #1e293b; }

.lang-select {
  background: none; border: 1px solid #e2e8f0; border-radius: 0.5rem;
  height: 36px; padding: 0 0.5rem; cursor: pointer; color: inherit;
  font-size: 0.875rem; font-family: inherit;
}
html.dark .lang-select { border-color: #1e293b; }
.lang-select:hover { background: #f1f5f9; }
html.dark .lang-select:hover { background: #1e293b; }

@media (max-width: 640px) {
  main { padding: 1.5rem 1rem 3rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.15rem; }
  .page-nav .actions a { padding: 0.3rem 0.5rem; font-size: 0.8rem; }
}
