/* =============================================================
   privacy.css — Privacy Policy page styles
   Extracted from inline <style> in privacy.html (SRV-CSS2)
   ============================================================= */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:           #06060e;
  --surface:      rgba(255,255,255,0.04);
  --glass:        rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.08);
  --text:         #e8e8ef;
  --text-dim:     #7a7a8e;
  --text-muted:   #4a4a5e;
  --accent:       #c8ff00;
  --accent-dim:   rgba(200,255,0,0.15);
  --cyan:         #00f0ff;
  --cyan-dim:     rgba(0,240,255,0.1);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;
  --col-width:    780px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

/* ─── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ─── Noise Texture Overlay ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ─── Grid Background ───────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ─── Animated Gradient Orbs ────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(200,255,0,0.06) 0%, transparent 70%);
  animation-duration: 20s;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(0,240,255,0.07) 0%, transparent 70%);
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}
.orb-3 {
  width: 400px; height: 400px;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,255,0,0.03) 0%, transparent 70%);
  animation-duration: 30s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 30px) scale(0.97); }
  100% { transform: translate(15px, 10px) scale(1.02); }
}

/* ─── Page Wrapper ──────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Centered Column ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Back Link ─────────────────────────────────────────── */
.back-bar {
  padding: 28px 0 0;
}
/* Minimum 44px touch target (SRV-UI20) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--accent); gap: 12px; }
.back-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.back-link .arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}
.back-link:hover .arrow { transform: translateX(-3px); }

/* ─── Page Header ───────────────────────────────────────── */
.page-header {
  padding: 48px 0 56px;
  text-align: center;
}
.brand-label {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs);
  background: var(--surface);
}
.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.page-title span {
  background: linear-gradient(135deg, var(--accent) 0%, #a0d400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.last-updated {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.header-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 24px auto 0;
  border-radius: 2px;
}

/* ─── Main Content Card ─────────────────────────────────── */
.content-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 52px 56px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.content-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,255,0,0.3), transparent);
}

/* ─── Policy Sections ───────────────────────────────────── */
.policy-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.policy-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.policy-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section heading with accent left border */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(200,255,0,0.2);
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.section-bar {
  display: inline-block;
  width: 3px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Body text */
.policy-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dim);
}
.policy-text + .policy-text { margin-top: 12px; }
/* Replace inline style="margin-top: 16px;" (SRV-HTML8) */
.policy-text--spaced { margin-top: 16px; }

/* Custom list */
.policy-list {
  list-style: none;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-dim);
}
.policy-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(200,255,0,0.4);
}
.policy-list li strong {
  font-weight: 600;
  color: var(--text);
}

/* Retention table-style list */
.retention-list {
  list-style: none;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.retention-item {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14px;
}
.retention-item .ri-label {
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  border-right: 1px solid var(--glass-border);
}
.retention-item .ri-value {
  padding: 10px 16px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Third-party chip list */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover {
  border-color: rgba(200,255,0,0.25);
  color: var(--text);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(0,240,255,0.5);
  flex-shrink: 0;
}

/* Contact info */
.contact-block {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
}
.contact-icon {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}
.contact-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.contact-row a:hover { opacity: 0.75; }
.contact-row a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cookie callout */
.callout {
  margin-top: 16px;
  padding: 18px 22px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,240,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.callout-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-dim);
}
.callout-text code {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(0,240,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0,240,255,0.15);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  margin-top: auto;
  padding: 32px 0 40px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}
.footer-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Back to Top Button ────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid rgba(200,255,0,0.3);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, border-color 0.2s;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(200,255,0,0.1);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent-dim);
  border-color: rgba(200,255,0,0.6);
  box-shadow: 0 4px 24px rgba(200,255,0,0.2);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}
.back-to-top:hover svg { transform: translateY(-2px); }

/* ─── Accessibility ─────────────────────────────────────── */
/* Sections start opacity:0 — tell screen readers not to skip them (SRV-UI15) */
.policy-section[aria-hidden="false"],
.policy-section {
  /* content is always in DOM and readable; only visually fades in */
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .policy-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .content-card { padding: 32px 24px; }
  .page-title   { font-size: 34px; }
  .back-to-top  { bottom: 20px; right: 20px; }
  .retention-item { flex-direction: column; }
  .retention-item .ri-label  { border-right: none; border-bottom: 1px solid var(--glass-border); }
  .retention-item .ri-value  { align-self: flex-start; }
}
