/* ==========================================================
   YourFirstSite: Privacy Policy + 404. Same tokens, type and
   buttons as the homepage (white, ink, blue, cyan).
   ========================================================== */
:root { --bg:#fff; --soft:#f5f7fa; --ink:#0b1220; --muted:#5b6577; --blue:#2563eb; --cyan:#06b6d4; --line:#e5e9f0;
  --font:'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --ease:cubic-bezier(.2,.8,.2,1); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 15px/1 var(--font);
  letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(11,18,32,.55); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue); box-shadow: 0 16px 30px -12px rgba(37,99,235,.6); }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.btn:focus-visible, .pp-toc a:focus-visible, .pp a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- page header ---------- */
.sp-hero { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 168px) 0 clamp(36px, 6vw, 64px); }
.sp-hero .bg-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 12%, transparent 72%); mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 12%, transparent 72%); }
.sp-hero .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .34; pointer-events: none; width: 420px; height: 420px; background: #bfdbfe; right: 4%; top: -4%; }
.sp-wrap { position: relative; width: min(1160px, 100% - 40px); margin: 0 auto; }
.sp-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 22px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.8); border: 1px solid var(--line); }
.sp-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.sp-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; max-width: 14ch; }
.sp-hero .lede { margin-top: 20px; max-width: 560px; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; color: var(--muted); font-weight: 500; }

/* ---------- privacy layout ---------- */
.pp { padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 9vw, 112px); }
.pp-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pp-toc { position: sticky; top: 96px; }
.pp-toc h2 { font-size: 13px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin-bottom: 12px; }
.pp-toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.pp-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--muted); transition: color .2s, border-color .2s; }
.pp-toc a:hover { color: var(--ink); }
.pp-toc a.on { color: var(--blue); border-left-color: var(--blue); }

.pp-body { max-width: 720px; }
.pp-sec { padding: 0 0 clamp(28px, 4vw, 40px); margin-bottom: clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.pp-sec:last-of-type { border-bottom: 0; margin-bottom: 0; }
.pp-sec h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin-bottom: 16px; }
.pp-sec p, .pp-sec li { font-size: 16.5px; line-height: 1.75; color: #2b3445; font-weight: 500; }
.pp-sec p + p, .pp-sec p + ul, .pp-sec ul + p { margin-top: 14px; }
.pp-sec ul { list-style: none; display: grid; gap: 8px; }
.pp-sec li { position: relative; padding-left: 26px; }
.pp-sec li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.pp-sec a { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(37,99,235,.35); text-underline-offset: 3px; }
.pp-sec a:hover { text-decoration-color: var(--blue); }
.pp-note { margin-top: 14px; padding: 14px 18px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); font-size: 15px !important; color: var(--muted) !important; }
.pp-contact { margin-top: 18px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pp-contact > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; }
.pp-contact > div:last-child { border-bottom: 0; }
.pp-contact dt { font-weight: 800; letter-spacing: -.01em; } .pp-contact dd { margin: 0; color: #2b3445; font-weight: 500; }
.pp-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 404 ---------- */
.nf { padding-bottom: clamp(80px, 12vw, 140px); }
.nf .code { font-size: clamp(6rem, 22vw, 15rem); line-height: .85; letter-spacing: -.07em; font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--line); margin-bottom: 8px; }
.nf .cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .pp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pp-toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
  .pp-toc ol { grid-template-columns: 1fr 1fr; gap: 0 18px; border-left: 0; }
  .pp-toc a { padding: 8px 0; border-left: 0; margin-left: 0; }
  .pp-toc a.on { border-left: 0; }
}
@media (max-width: 520px) {
  .pp-toc ol { grid-template-columns: 1fr; }
  .pp-contact > div { grid-template-columns: 1fr; gap: 2px; }
  .pp-cta .btn, .nf .cta-row .btn { width: 100%; }
  .pp-sec p, .pp-sec li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
