/* ============================================================
   InvoiceKit Pro — shared styles for legal pages
   (statically visible content — never gated behind JS/animation)
   ============================================================ */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --accent-1: #6c63ff;
  --accent-2: #8a5cff;
  --accent-grad: linear-gradient(135deg, #6c63ff 0%, #8a5cff 100%);
  --accent-glow: rgba(124, 99, 255, 0.55);
  --maxw: 760px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
html[data-theme="dark"] {
  --bg: #0d0d1a; --surface: #16162a; --surface-hi: rgba(255,255,255,0.04);
  --text: #ffffff; --text-2: #b7b7c9; --text-3: #6c6c82;
  --border: rgba(255,255,255,0.08); --border-hi: rgba(255,255,255,0.16);
  --grid: rgba(255,255,255,0.045); --shadow: 0 30px 80px -30px rgba(0,0,0,0.85);
  --nav-bg: rgba(13,13,26,0.72);
}
html[data-theme="light"] {
  --bg: #f6f6fb; --surface: #ffffff; --surface-hi: rgba(108,99,255,0.03);
  --text: #14141f; --text-2: #50505f; --text-3: #8b8b9c;
  --border: rgba(18,18,40,0.09); --border-hi: rgba(18,18,40,0.16);
  --grid: rgba(18,18,40,0.05); --shadow: 0 30px 70px -32px rgba(40,38,80,0.30);
  --nav-bg: rgba(246,246,251,0.72);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--text);
  line-height: 1.6; letter-spacing: -0.011em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* background fx */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 30%, transparent 80%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob-1 { width: 560px; height: 560px; top: -280px; left: 50%; margin-left: -420px;
  background: radial-gradient(circle, rgba(124,99,255,0.5), transparent 65%); }
.blob-2 { width: 460px; height: 460px; top: -220px; left: 50%; margin-left: 40px;
  background: radial-gradient(circle, rgba(138,92,255,0.38), transparent 65%); }
html[data-theme="light"] .blob { opacity: .4; }

.wrap { position: relative; z-index: 1; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg); border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-grad); display: grid; place-items: center; box-shadow: 0 6px 18px -4px var(--accent-glow); flex: none; }
.brand-mark svg { width: 16px; height: 16px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-hi); color: var(--text-2); cursor: pointer;
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-hi); transform: translateY(-1px); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
.nav-cta { font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 10px; background: var(--accent-grad); color: #fff; box-shadow: 0 10px 26px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.22); transition: transform .2s var(--ease); }
.nav-cta:hover { transform: translateY(-1px); }

/* content */
.doc { max-width: var(--maxw); margin: 0 auto; padding: 64px 28px 40px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; margin-bottom: 40px; transition: color .2s, gap .2s; }
.back:hover { color: var(--text); gap: 11px; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--accent-2); text-transform: uppercase; font-weight: 600; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.035em; color: var(--text); margin: 14px 0 10px; line-height: 1.05; }
.updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--text-2); line-height: 1.7; padding-bottom: 8px; }

.doc h2 { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin: 44px 0 14px; }
.doc h2 .n { font-family: var(--font-mono); font-size: 14px; color: var(--accent-2); margin-right: 10px; font-weight: 600; }
.doc p { font-size: 15.5px; line-height: 1.8; color: var(--text-2); margin-bottom: 14px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a.link { color: var(--accent-2); font-weight: 500; }
.doc a.link:hover { text-decoration: underline; }
.doc ul { list-style: none; margin: 4px 0 16px; display: grid; gap: 11px; }
.doc ul li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.75; color: var(--text-2); }
.doc ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); }

.highlight {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(124,99,255,0.10), rgba(138,92,255,0.06));
  border: 1px solid rgba(124,99,255,0.28); border-radius: 16px; padding: 22px 24px; margin: 4px 0 8px;
}
.highlight .h-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-grad); display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px -10px var(--accent-glow); }
.highlight .h-ico svg { width: 19px; height: 19px; }
.highlight p { color: var(--text); font-size: 16px; margin: 0; line-height: 1.65; }

/* footer */
.footer { border-top: 1px solid var(--border); margin-top: 64px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 15px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 0 28px 36px; color: var(--text-3); font-size: 13px; }

@media (max-width: 600px) {
  .doc { padding: 44px 20px 30px; }
  .nav-inner { padding: 0 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
