/* ============================================================
   NetroFlex CIP™ — Privacy Page Styles
   File: /assets/css/privacy.css
   ============================================================ */

/* ── Reset & Tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f7f6f2;
  --surface:     #ffffff;
  --border:      #e4e1d8;
  --text:        #1a1a2e;
  --text-muted:  #6b6b80;
  --accent:      #1a1a2e;
  --accent-soft: #f0efe9;
  --pill-bg:     #1a1a2e;
  --pill-text:   #ffffff;
  --tag-gdpr:    #e8f4f0;
  --tag-gdpr-c:  #1a6b55;
  --tag-ccpa:    #fef3e2;
  --tag-ccpa-c:  #92580a;
  --tag-sec:     #eef2ff;
  --tag-sec-c:   #3730a3;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
}

[data-theme="dark"] {
  --bg:          #0f0f18;
  --surface:     #17172a;
  --border:      #2a2a3e;
  --text:        #e8e8f0;
  --text-muted:  #7878a0;
  --accent:      #a8b8ff;
  --accent-soft: #1e1e30;
  --pill-bg:     #a8b8ff;
  --pill-text:   #0f0f18;
  --tag-gdpr:    #0f2a22;
  --tag-gdpr-c:  #4ade80;
  --tag-ccpa:    #2a1f0a;
  --tag-ccpa-c:  #fbbf24;
  --tag-sec:     #151530;
  --tag-sec-c:   #818cf8;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Skip Link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.logo-link span {
  color: var(--text-muted);
  font-size: .85rem;
  font-family: var(--font-sans);
  margin-left: .4rem;
}
.header-right { display: flex; align-items: center; gap: .75rem; }

.btn-back {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: .35rem .8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all .2s;
}
.btn-back:hover { color: var(--text); border-color: var(--text); }
.btn-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .35rem .6rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-muted);
  transition: all .2s;
}
.theme-toggle:hover { border-color: var(--text); color: var(--text); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Hero Banner ── */
.policy-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2.5rem;
}
.policy-hero-inner { max-width: 900px; margin: 0 auto; }

.policy-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.policy-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.policy-meta span { display: flex; align-items: center; gap: .3rem; }

.compliance-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.ctag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .25rem .7rem;
  border-radius: 999px;
}
.ctag-gdpr { background: var(--tag-gdpr); color: var(--tag-gdpr-c); }
.ctag-ccpa { background: var(--tag-ccpa); color: var(--tag-ccpa-c); }
.ctag-sec  { background: var(--tag-sec);  color: var(--tag-sec-c);  }

/* ── Layout ── */
.policy-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── TOC Sidebar ── */
.toc { position: sticky; top: 72px; }
.toc-title {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.toc-list { list-style: none; }
.toc-list li + li { margin-top: .1rem; }
.toc-list a {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: .3rem .6rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all .15s;
  line-height: 1.4;
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--text);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.toc-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Main Content ── */
.policy-content { min-width: 0; }

.policy-section {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}
.section-number {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.policy-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: .9rem;
  line-height: 1.3;
}
.policy-content h3 {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.policy-content p {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: .9rem;
}
.policy-content ul {
  list-style: none;
  margin: .5rem 0 1rem;
  padding: 0;
}
.policy-content ul li {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  padding: .3rem 0 .3rem 1.5rem;
  position: relative;
}
.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .5;
}
.policy-content ul li strong { font-weight: 600; color: var(--text); }

/* ── Callout Boxes ── */
.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  background: var(--accent-soft);
}
.callout-gdpr { background: var(--tag-gdpr); border-color: var(--tag-gdpr-c); }
.callout-ccpa { background: var(--tag-ccpa); border-color: var(--tag-ccpa-c); }
.callout-ip   { background: var(--tag-sec);  border-color: var(--tag-sec-c);  }

.callout-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.callout-gdpr .callout-title { color: var(--tag-gdpr-c); }
.callout-ccpa .callout-title { color: var(--tag-ccpa-c); }
.callout-ip   .callout-title { color: var(--tag-sec-c);  }
.callout p { margin-bottom: 0; font-size: .88rem; }

/* ── Divider ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Contact Card ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card p { margin-bottom: .4rem; font-size: .9rem; }
.contact-card a { color: var(--accent); font-weight: 500; }
.contact-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); text-decoration: none; margin: 0 .6rem; }
.site-footer a:hover { color: var(--text); }
.site-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.footer-nav { margin-top: .5rem; }

.contact-note {
  margin-top: .75rem !important;
  font-size: .82rem !important;
  color: var(--text-muted) !important;
}

/* ── Focus styles (accessibility) ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .policy-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .policy-hero h1 { font-size: 1.8rem; }
}

/* ── Print ── */
@media print {
  .site-header, .toc, .skip-link { display: none; }
  .policy-layout { grid-template-columns: 1fr; }
  body { background: white; color: black; }
}
