/* Macanc pages (terms, privacy, cookies, copyright, guidelines, security): calm surface with the blueprint grid, tinted by the accent.
   Same look as the app: fine grid faded toward the edges, one accent colour, bubble-only logo. */
:root { color-scheme: light dark; --accent: #8b5cf6; --pg-bg: #14141b; --pg-text: #d7dae3; --pg-bright: #f3f4f8; --pg-line: rgba(139, 92, 246, .22); --pg-fine: rgba(139, 92, 246, .08); --pg-panel: rgba(24, 24, 33, .78); --pg-border: rgba(255, 255, 255, .1); }
@media (prefers-color-scheme: light) { :root { --pg-bg: #f3f2f8; --pg-text: #2a2b35; --pg-bright: #14141b; --pg-line: rgba(109, 70, 214, .2); --pg-fine: rgba(109, 70, 214, .07); --pg-panel: rgba(255, 255, 255, .85); --pg-border: rgba(20, 20, 27, .1); } }
html { background: var(--pg-bg); }
body { position: relative; max-width: none !important; margin: 0 !important; padding: 0 !important; background: transparent; color: var(--pg-text); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(60% 40% at 50% 0%, rgba(139, 92, 246, .16), transparent 70%), linear-gradient(var(--pg-line) 1px, transparent 1px), linear-gradient(90deg, var(--pg-line) 1px, transparent 1px), linear-gradient(var(--pg-fine) 1px, transparent 1px), linear-gradient(90deg, var(--pg-fine) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 80%); mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 80%); }
.pg-head { max-width: 46rem; margin: 0 auto; padding: 22px 16px 0; display: flex; align-items: center; gap: 10px; }
.pg-head a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pg-bright); font-weight: 700; letter-spacing: .01em; }
.pg-head img { width: 34px; height: 34px; }
.pg-main { max-width: 46rem; margin: 16px auto 40px; padding: 8px 22px 26px; background: var(--pg-panel); border: 1px solid var(--pg-border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.pg-main h1 { color: var(--pg-bright); margin-top: 18px; }
.pg-main h2 { color: var(--pg-bright); padding-top: 4px; border-top: 1px solid var(--pg-border); }
.pg-main a { color: var(--accent); text-underline-offset: 2px; }
@media (max-width: 560px) { .pg-main { margin: 10px 8px 24px; padding: 4px 14px 20px; } }
@media print { body::before { display: none; } .pg-main { border: 0; box-shadow: none; background: none; } }
