/* ============================================================
   MaskWise.ai — Privacy Policy
   Obsidian theme: purple accent + Inter / Source Code Pro
   Tokens sourced from MaskWise/DESIGN.md
   ============================================================ */

@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/Inter-Regular.otf') format('opentype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/Inter-Medium.otf') format('opentype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/Inter-SemiBold.otf') format('opentype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/Inter-Bold.otf') format('opentype')}
@font-face{font-family:'Source Code Pro';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/SourceCodePro-Regular.otf') format('opentype')}
@font-face{font-family:'Source Code Pro';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/SourceCodePro-Medium.otf') format('opentype')}

:root {
  --ink:        #23282f;
  --ink-soft:   #4a515a;
  --slate:      #646b75;
  --slate-300:  #9aa1ab;
  --line:       #e2e3e7;
  --line-soft:  #eef0f3;
  --paper:      #f5f6f8;
  --card:       #ffffff;

  --accent:      #705dcf;
  --accent-deep: #6c56c8;
  --accent-hover:#7a6ae6;
  --accent-tint: #ede9fe;
  --accent-line: #d9d1f5;

  --amber:      #b8841f;
  --amber-tint: #faf1da;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(30,34,46,.04), 0 8px 28px rgba(30,34,46,.07);
  --maxw:       1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: rgba(245,246,248,.85); backdrop-filter: saturate(140%) blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: .02em; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; display: block; }
.topbar nav a { color: var(--slate); font-weight: 600; font-size: 16px; margin-left: 26px; }
.topbar nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { .topbar nav { display: none; } }

/* Hero */
.hero { padding: 64px 0 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: 'Source Code Pro', monospace; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-tint); border: 1px solid var(--accent-line); padding: 6px 13px; border-radius: 100px; margin-bottom: 20px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(36px, 5.5vw, 52px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
.meta { color: var(--slate); font-size: 16px; }
.meta strong { color: var(--ink-soft); font-weight: 600; }

/* Short version callout */
.tldr { margin: 30px 0 6px; background: linear-gradient(150deg, #fff 0%, var(--accent-tint) 150%); border: 1px solid var(--accent-line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.tldr h2 { margin: 0 0 8px; font-family: 'Source Code Pro', monospace; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
.tldr p { margin: 0; font-size: 19px; color: var(--ink-soft); }
.tldr p strong { color: var(--ink); font-weight: 600; }

/* Layout: TOC + content */
.layout { display: grid; grid-template-columns: 248px 1fr; gap: 48px; align-items: start; padding: 40px 0 30px; }
@media (max-width: 880px){ .layout { grid-template-columns: 1fr; gap: 8px; } }

.toc { position: sticky; top: 92px; }
@media (max-width: 880px){ .toc { position: static; margin-bottom: 24px; } }
.toc .toc-label { font-family: 'Source Code Pro', monospace; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-300); margin: 0 0 12px; padding-left: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 7px 14px; border-left: 2px solid var(--line); color: var(--slate); font-size: 15.5px; line-height: 1.4; }
.toc a::before { content: counter(toc) ". "; color: var(--slate-300); font-family: 'Source Code Pro', monospace; font-size: 13px; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); text-decoration: none; }

/* Content */
.content section { padding-top: 14px; margin-bottom: 38px; scroll-margin-top: 92px; }
.content h2 { font-size: clamp(23px, 3vw, 28px); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 14px; font-weight: 800; display: flex; gap: 12px; align-items: baseline; }
.content h2 .num { font-family: 'Source Code Pro', monospace; font-size: 17px; font-weight: 500; color: var(--accent-deep); flex: none; }
.content h3 { font-size: 19px; font-weight: 700; margin: 22px 0 8px; color: var(--ink); }
.content p { margin: 0 0 14px; color: var(--ink-soft); }
.content ul { margin: 6px 0 16px; padding-left: 24px; color: var(--ink-soft); }
.content li { margin-bottom: 9px; }
.content strong { color: var(--ink); font-weight: 600; }
.content code, .tok-inline { font-family: 'Source Code Pro', monospace; font-size: 15px; background: var(--accent-tint); color: var(--accent-deep); padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.note { border-left: 3px solid var(--amber); background: var(--amber-tint); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 6px 0 16px; font-size: 16px; color: #6A4E12; }
.note strong { color: #4F3A0C; }

.divider { height: 1px; background: var(--line); border: 0; margin: 6px 0 0; }

/* Contact block */
.contact-final { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); margin-top: 8px; }
.contact-final .lab { font-size: 14px; color: var(--slate); margin-bottom: 2px; }
.contact-final .val { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 16px; overflow-wrap: anywhere; }
.contact-final .val:last-child { margin-bottom: 0; }

footer { border-top: 1px solid var(--line); margin-top: 36px; padding: 36px 0 56px; color: var(--slate); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
footer .links a { color: var(--slate); margin-right: 22px; font-weight: 600; }
footer .links a:hover { color: var(--accent); text-decoration: none; }
footer .copy { font-size: 15px; color: var(--slate-300); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
