/* Privacy Policy page-specific styles. Keep lightweight and complementary to base.css. */
:root {
  --policy-bg: #0b0c10;
  --policy-fg: #e8f1ff;
  --policy-accent: #ff6ec7; /* playful vibrant accent */
  --policy-accent-2: #5ce1e6; /* secondary accent */
  --policy-muted: #9fb3c8;
  --surface: #11141a;
  --border: rgba(255,255,255,0.08);
}

.policy-hero {
  background: linear-gradient(135deg, rgba(255,110,199,0.12), rgba(92,225,230,0.10)), var(--policy-bg);
  color: var(--policy-fg);
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  border-bottom: 1px solid var(--border);
}
.policy-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.policy-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--policy-accent-2);
  margin: 0 0 .5rem 0;
}
.policy-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 .5rem 0;
}
.policy-hero .lede {
  color: var(--policy-muted);
  max-width: 70ch;
}
.policy-hero .update-note {
  color: var(--policy-muted);
  margin: 0 0 .75rem 0;
}

.policy-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
}

.policy-toc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
.policy-toc h2 {
  font-size: 1rem;
  margin: 0 0 .5rem 0;
}
.policy-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}
.policy-toc a {
  color: var(--policy-fg);
  text-decoration: none;
}
.policy-toc a:hover,
.policy-toc a:focus {
  color: var(--policy-accent);
  text-decoration: underline;
}

.policy-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--policy-fg);
}
.policy-content h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  margin: 1.2rem 0 .5rem 0;
}
.policy-content h3 {
  font-size: 1.05rem;
  margin: 1rem 0 .25rem 0;
  color: var(--policy-accent-2);
}
.policy-content p,
.policy-content li {
  color: var(--policy-muted);
}
.policy-content ul {
  padding-left: 1.25rem;
}
.policy-content a {
  color: var(--policy-accent);
}
.policy-content .legal-note {
  margin-top: 2rem;
  font-size: .95rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}

/* Responsive layout: sticky ToC on larger screens */
@media (min-width: 980px) {
  .policy-wrap {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
  .policy-toc {
    position: sticky;
    top: 5.5rem; /* account for fixed header if present */
    max-height: calc(100vh - 6rem);
    overflow: auto;
  }
}

/* Better anchor scrolling accounting for fixed headers */
.policy-content h2[id],
.policy-content h3[id],
section[id] {
  scroll-margin-top: 5.5rem;
}

/* Focus visibility */
.policy-toc a:focus-visible,
.policy-content a:focus-visible {
  outline: 2px solid var(--policy-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
