/* Mashhud legal pages (/privacy, /tos) — shared styles ported from
   Mashhud Legal.dc.html. Tokens in tokens.css. */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { color: var(--color-accent-300); }
a:hover { color: var(--color-accent-200); }

.back-link { text-decoration: none; color: var(--color-neutral-400); font-size: 13px; }
.back-link:hover { color: var(--color-accent-300); }

/* view pills — Privacy / Terms switcher */
.pill { white-space: nowrap; border-radius: 999px; padding: 9px 18px; font-family: var(--font-heading); font-weight: 500; font-size: 13px; text-decoration: none; }
.pill-active { background: rgba(145, 132, 217, .12); color: var(--color-accent-200); border: 1px solid var(--color-accent); }
.pill-active:hover { color: var(--color-accent-200); }
.pill-idle { background: transparent; color: var(--color-neutral-500); border: 1px solid var(--color-neutral-800); }
/* pin the idle pill's color on hover — the design has no hover state here,
   this only cancels the global a:hover accent */
.pill-idle:hover { color: var(--color-neutral-500); }

/* sticky table of contents — hidden on narrow screens (reference: <760px) */
.legal-toc { position: sticky; top: 84px; flex: 0 0 200px; display: flex; flex-direction: column; gap: 9px; }
@media (max-width: 759px) { .legal-toc { display: none; } }
.toc-link { text-decoration: none; font-size: 12.5px; color: var(--color-neutral-500); }
.toc-link:hover { color: var(--color-accent-300); }

/* content sections */
.legal-section, #p-short { scroll-margin-top: 76px; } /* clear the sticky nav on TOC jumps */
.legal-section { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: 1px solid var(--color-neutral-900); }
/* the Terms page's first section sits flush under the header (no rule above it) */
.legal-section.first { padding-top: 0; border-top: none; }
.legal-section h2 { margin: 0; font-family: var(--font-heading); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.legal-section p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--color-neutral-400); }
.legal-section strong { font-weight: 600; color: var(--color-neutral-200); }

.dotrow { display: flex; gap: 10px; font-size: 14px; line-height: 1.7; color: var(--color-neutral-400); }
.dotrow .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); margin-top: 8px; }

.mail { text-decoration: underline; text-underline-offset: 3px; }
