/* Shared styles for Privacy, Terms, About, Self-host pages */
:root {
  --surface-0: #09090b;
  --surface-1: #141416;
  --surface-2: #18181b;
  --border: rgba(255,255,255,0.08);
  --text-1: #f8fafc;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --accent: #ff6b1a;
  --accent-glow: rgba(255,107,26,0.35);
  --font-sans: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Familjen Grotesk', -apple-system, sans-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(120% 40% at 0% 0%, rgba(150,70,10,.35), transparent 60%);
  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(9,9,11,0.92);
  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: 22px; height: 22px; background: conic-gradient(var(--accent) 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect width='9.5' height='9.5' rx='3' fill='black'/%3E%3Crect x='12.5' width='9.5' height='9.5' rx='3' fill='black'/%3E%3Crect y='12.5' width='9.5' height='9.5' rx='3' fill='black'/%3E%3Crect x='12.5' y='12.5' width='9.5' height='9.5' rx='3' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect width='9.5' height='9.5' rx='3' fill='black'/%3E%3Crect x='12.5' width='9.5' height='9.5' rx='3' fill='black'/%3E%3Crect y='12.5' width='9.5' height='9.5' rx='3' fill='black'/%3E%3Crect x='12.5' y='12.5' width='9.5' height='9.5' rx='3' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; }
.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(255,107,26,0.06); border: 1px solid rgba(255,107,26,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; }
}
