/* www.umoria.net: the privacy policy and terms of service pages (privacy.html, terms.html).
   Plain readable documents in the site's dark, lantern-lit look: the same colours, fonts and top
   bar as style.css. Nothing from outside; the CSP allows style-src 'self' only, so there are no
   inline styles on these pages. A single column, 760 px at most, from 320-pixel phones up. */
:root {
  --bg: #0c0e10;
  --panel: #14171a;
  --line: #262b30;
  --text: #d9d6cf;
  --heading: #f2efe8;
  --dim: #8d9096;
  --lamp: #e3b54f;
  --lamp-ink: #1a1405;
  --link: #8cc8ff;
  --mono: "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--ui);
  overflow-wrap: anywhere;
}

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }

/* the top bar, as on the home page */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: #0c0e10ee; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.brand { color: var(--text); font: 600 15px var(--mono); letter-spacing: 0.02em; text-decoration: none; }
.at { color: var(--lamp); }
.play {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 6px;
  background: var(--lamp); color: var(--lamp-ink); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.play:hover { background: #f0c664; }

/* the document */
.doc { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; }
h1 { margin: 8px 0 4px; color: var(--lamp); font: 700 clamp(1.9rem, 6vw, 2.6rem)/1.15 var(--mono); }
h2 {
  margin: 2.2rem 0 0.4rem; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  color: var(--heading); font: 700 1.2rem/1.3 var(--mono);
}
p, ul { margin: 0.8rem 0; }
ul { padding-left: 1.3rem; }
li { margin: 0.4rem 0; padding-left: 0.2rem; }
li::marker { color: var(--dim); }
strong { color: var(--heading); font-weight: 600; }
code { font: 0.9em var(--mono); background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.updated { margin: 0 0 1.6rem; color: var(--dim); font-size: 0.95rem; }

/* the footer */
.foot {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--dim); font-size: 0.9rem; line-height: 1.6;
}
.foot p { margin: 0.25rem 0; }
.foot nav { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-block; padding: 6px 0; }

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .doc { padding-top: 24px; padding-bottom: 36px; }
  h2 { margin-top: 1.9rem; }
}