/*
  Standalone stylesheet for the Muninn legal pages (/terms, /privacy).
  These pages are plain HTML + this external stylesheet: no inline styles and
  no JavaScript, so they satisfy the site CSP (style-src 'self', script-src
  'self'). Obsidian + honey-gold, matched to the app tokens, system font stack
  (the app's bundled webfonts are not referenced here).
*/

:root {
  --ground: #090a0d;
  --panel: #0e1014;
  --text: #eceef2;
  --ink-dim: #c7cad2;
  --muted: #8b909a;
  --muted-2: #80858f;
  --gold: #e7b84b;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.brand img {
  height: 20px;
  width: auto;
  display: block;
}
.brand span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.topbar .back {
  font-size: 13.5px;
  color: var(--muted);
}
.topbar .back:hover {
  color: var(--text);
}

header.doc {
  margin-bottom: 40px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 12px;
}
.updated {
  font-size: 14px;
  color: var(--muted-2);
  margin: 0;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 8px;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 44px 0 14px;
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

p,
li {
  font-size: 1rem;
  color: var(--muted);
}
p {
  margin: 0 0 16px;
}

strong {
  color: var(--ink-dim);
  font-weight: 600;
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
li {
  margin: 0 0 8px;
}

.card {
  border: 1px solid var(--hairline);
  background: var(--panel);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 20px;
}
.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--ink-dim);
}

.pagefoot {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
}
.pagefoot a {
  color: var(--muted);
}
.pagefoot a:hover {
  color: var(--text);
}
.pagefoot .links {
  display: inline-flex;
  gap: 18px;
}
