/* ============================================================
   SPR TECHSERV — PRIVACY POLICY PAGE
   (tokens, nav, footer live in base.css)
   ============================================================ */
body { background: var(--bg-alt); }

/* ---------- Reading progress ---------- */
#read-progress { position: fixed; top: 0; left: 0; z-index: 2000; height: 3px; width: 0; background: linear-gradient(90deg, var(--royal), var(--sky), var(--gold)); }

/* ---------- Hero banner ---------- */
.pp-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem)) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  color: var(--on-dark-2);
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(27,116,228,.38), transparent 62%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, #0a2a7c);
}
.pp-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 75% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 75% 30%, #000 20%, transparent 75%);
}
.pp-hero::after { content: ''; position: absolute; width: 560px; height: 560px; right: -220px; bottom: -300px; border-radius: 50%; border: 1px solid rgba(240,168,0,.28); pointer-events: none; }
.pp-hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.pp-eyebrow { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); }
.pp-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--gold); }
.pp-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -.03em; }
.pp-hero h1 span { color: var(--gold-l); }
.pp-hero p { max-width: 46rem; margin-top: 1.3rem; font-size: 1.1rem; line-height: 1.8; color: var(--on-dark-2); }
.pp-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.pp-meta-item { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.05); font-size: .86rem; font-weight: 500; color: #e6edfb; }
.pp-meta-item i { color: var(--gold-l); }

/* ---------- Layout ---------- */
.pp-layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2.5rem; align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.5rem, 7vw, 5.5rem);
}
.toc-wrap { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.toc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.toc-title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.toc-title i { color: var(--gold-d); }
.toc-list a { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; margin-left: -.1rem; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; font-size: .9rem; line-height: 1.4; color: var(--text); transition: color .2s, background .2s, border-color .2s; }
.toc-list a i { display: none; }
.toc-list a:hover { color: var(--royal); background: var(--bg-tint); }
.toc-list a.active { color: var(--royal); font-weight: 600; background: var(--bg-tint); border-left-color: var(--gold); }
.toc-divider { height: 1px; margin: 1rem 0; background: var(--line); }
.toc-contact { padding: 1rem; background: var(--bg-alt); border-radius: var(--r-md); }
.toc-contact p { margin-bottom: .6rem; font-size: .88rem; line-height: 1.6; color: var(--text); }
.toc-contact a { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--royal); word-break: break-all; }
.toc-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Article ---------- */
.pp-content { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.6rem, 4vw, 3.2rem); box-shadow: var(--shadow-sm); }
.pp-section { padding: 2.6rem 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.pp-section:first-of-type, .mobile-toc + .pp-section { border-top: 0; padding-top: .5rem; }
.pp-section:last-child { padding-bottom: 0; }
.pp-sec-header { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.5rem; }
.pp-sec-num { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--navy-800), var(--royal)); color: var(--gold-l); font-size: 1.05rem; font-weight: 800; box-shadow: 0 8px 18px rgba(10,63,176,.2); }
.pp-sec-title { font-size: clamp(1.35rem, 2.5vw, 1.7rem); font-weight: 800; line-height: 1.2; color: var(--ink); }
.pp-sec-sub { margin-top: .3rem; font-size: .95rem; color: var(--muted); }

.pp-p { max-width: 46rem; margin-bottom: 1.1rem; font-size: 1.04rem; line-height: 1.85; color: var(--text); }
.pp-p:last-child { margin-bottom: 0; }
.pp-p strong { color: var(--ink); font-weight: 600; }
.pp-p a { color: var(--royal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pp-p a:hover { color: var(--royal-d); }

/* Callouts */
.info-box { max-width: 46rem; margin: 1.5rem 0; padding: 1.15rem 1.4rem; background: #eef3fd; border: 1px solid #d3e0f7; border-left: 4px solid var(--royal); border-radius: 0 var(--r-md) var(--r-md) 0; }
.info-box p { font-size: 1rem; line-height: 1.8; color: var(--text); }
.info-box p strong { color: var(--ink); }
.info-box p i { margin-right: .5rem; color: var(--royal); }
.info-box.green { background: #ebf8f1; border-color: #c5e8d5; border-left-color: var(--green); }
.info-box.green p i { color: var(--green); }
.info-box.gold { background: #fff7de; border-color: #f4e0a6; border-left-color: var(--gold); }
.info-box.gold p i { color: var(--gold-d); }

/* Lists */
.pp-list { max-width: 46rem; margin: 1rem 0 1.2rem; }
.pp-list li { display: flex; align-items: flex-start; gap: .9rem; padding: .6rem 0; font-size: 1.02rem; line-height: 1.75; color: var(--text); border-bottom: 1px solid var(--line); }
.pp-list li:last-child { border-bottom: 0; }
.pp-list li i { flex-shrink: 0; margin-top: .62rem; font-size: .45rem; color: var(--gold); }
.pp-list li strong { color: var(--ink); font-weight: 600; }

/* Tables */
.table-wrap { margin: 1.4rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.data-table th { padding: .95rem 1.1rem; text-align: left; background: var(--navy-900); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.data-table td { padding: .9rem 1.1rem; vertical-align: top; line-height: 1.65; color: var(--text); border-top: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) td { background: var(--bg-alt); }
.data-table td:first-child { color: var(--ink); font-weight: 600; }

/* Rights grid */
.rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin: 1.4rem 0; }
.right-card { padding: 1.4rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.right-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-md); }
.right-icon { width: 42px; height: 42px; margin-bottom: 1rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--navy-800), var(--royal)); color: var(--gold-l); font-size: .95rem; }
.right-card h4 { margin-bottom: .4rem; font-size: 1.02rem; font-weight: 700; }
.right-card p { font-size: .94rem; line-height: 1.65; color: var(--text); }

/* Contact block */
.contact-block { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; margin-top: 1.5rem; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--r-lg); color: var(--on-dark-2); background: radial-gradient(500px 260px at 100% 0%, rgba(27,116,228,.35), transparent 65%), linear-gradient(160deg, var(--navy-950), var(--navy-900)); border-top: 4px solid var(--gold); }
.contact-block h3 { margin-bottom: .6rem; font-size: 1.4rem; font-weight: 800; color: #fff; }
.contact-block p { font-size: 1rem; line-height: 1.75; color: var(--on-dark-2); }
.contact-links { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
.contact-link { display: flex; align-items: center; gap: .8rem; font-size: .98rem; color: var(--on-dark-2); }
.contact-link i { width: 1.1rem; text-align: center; color: var(--gold-l); }
.contact-link a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.contact-link a:hover { color: var(--gold-l); text-decoration-color: var(--gold-l); }
.btn-email { display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.8rem; border-radius: 999px; background: var(--gold); color: var(--navy-950); font-size: .95rem; font-weight: 700; white-space: nowrap; transition: background .2s, transform .2s; }
.btn-email:hover { background: var(--gold-l); transform: translateY(-2px); }

/* Mobile TOC */
.mobile-toc { display: none; margin-bottom: 1.5rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.mobile-toc-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; background: none; border: 0; cursor: pointer; font-size: .98rem; font-weight: 600; color: var(--ink); }
.mobile-toc-toggle span i { margin-right: .6rem; color: var(--royal); }
.mobile-toc-toggle > i { color: var(--royal); transition: transform .3s; }
.mobile-toc-toggle.open > i { transform: rotate(180deg); }
.mobile-toc-links { display: none; flex-direction: column; padding: .4rem 1rem 1rem; border-top: 1px solid var(--line); }
.mobile-toc-links.open { display: flex; }
.mobile-toc-links a { display: flex; align-items: center; gap: .7rem; padding: .6rem .4rem; font-size: .96rem; color: var(--text); border-radius: 8px; }
.mobile-toc-links a i { font-size: .4rem; color: var(--gold); }
.mobile-toc-links a:hover { color: var(--royal); background: var(--bg-tint); }

/* Footer extra */
.ft-home { font-size: .88rem; font-weight: 600; color: var(--gold-l); }
.ft-home:hover { color: #fff; }
.ft-home i { margin-left: .35rem; font-size: .8em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pp-layout { grid-template-columns: 1fr; }
  .toc-wrap { display: none; }
  .mobile-toc { display: block; }
  .contact-block { grid-template-columns: 1fr; }
  .btn-email { justify-content: center; }
}
@media (max-width: 660px) {
  .pp-content { border-radius: 18px; }
  .pp-sec-num { width: 44px; height: 44px; font-size: 1rem; }
  .pp-section { padding: 2.1rem 0; }
  .rights-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .rights-grid { grid-template-columns: 1fr; }
  .nav-back { padding: .5rem .9rem; font-size: .85rem; }
}
