/* Shared styles for Privacy, Terms, About, Self-host pages */
:root {
  --surface-0: #060a13;
  --surface-1: #0b1220;
  --surface-2: #131c2e;
  --border: rgba(255,255,255,0.08);
  --text-1: #f8fafc;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --accent: #00d4aa;
  --accent-glow: rgba(0,212,170,0.35);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(at 20% 0%, rgba(0,212,170,0.04), transparent 40%);
  min-height: 100vh;
}
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1100px; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,10,19,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: 1180px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-1); font-weight: 600; text-decoration: none; }
.brand-orb { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #2effc6, var(--accent) 70%); box-shadow: 0 0 14px var(--accent-glow); }
.brand-name { font-size: 17px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text-1); }
.btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; text-decoration: none; border: 1px solid transparent; transition: all .15s; }
.btn-primary { background: var(--accent); color: #060a13; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-1); border-color: rgba(255,255,255,0.16); }

article { padding: 80px 0 120px; }
article h1 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
article .subtitle { color: var(--text-3); font-size: 16px; margin-bottom: 50px; }
article h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 600; margin: 50px 0 14px; letter-spacing: -0.01em; }
article h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; color: var(--text-1); }
article p { color: var(--text-2); margin: 14px 0; }
article ul, article ol { color: var(--text-2); padding-left: 22px; }
article li { margin: 8px 0; }
article a { color: var(--accent); }
article strong { color: var(--text-1); }
article code { background: var(--surface-2); padding: 2px 8px; border-radius: 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13.5px; color: var(--text-1); }
article pre { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 20px; overflow-x: auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.6; color: var(--text-1); }
article pre code { background: transparent; padding: 0; }
article hr { border: 0; border-top: 1px solid var(--border); margin: 50px 0; }
.callout { background: rgba(0,212,170,0.06); border: 1px solid rgba(0,212,170,0.18); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 22px; margin: 28px 0; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.toc { background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 50px; }
.toc h3 { margin-top: 0; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.toc ul { list-style: none; padding: 0; margin: 14px 0 0; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.toc a:hover { color: var(--accent); }

.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 24px; color: var(--text-3); font-size: 13px; gap: 20px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  article { padding: 40px 0 80px; }
}
