/* Privacy Policy page-specific styles */
.legal-hero {
  background: linear-gradient(90deg, rgb(var(--color-primary-rgb) / 0.06), rgba(0,0,0,0) 60%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-10);
}
.legal-hero .eyebrow { font-weight: 700; color: var(--color-primary); letter-spacing: 0.02em; margin-bottom: var(--space-2); }
.legal-hero .update-meta { margin-top: var(--space-2); }

/* Layout: TOC + Content */
.policy { display: grid; gap: var(--space-8); align-items: start; padding-top: var(--space-8); padding-bottom: var(--space-12); }
@media (min-width: 1000px) { .policy { grid-template-columns: 280px 1fr; } }

.policy__toc { position: relative; }
@media (min-width: 1000px) {
  .policy__toc { position: sticky; top: 96px; }
}

.toc-list { margin: 0; padding-left: var(--space-4); }
.toc-list li { margin: var(--space-1) 0; }
.toc-list a { display: block; padding: 8px 10px; border-radius: var(--radius-md); color: var(--gray-800); }
.toc-list a:hover { background: var(--gray-100); text-decoration: none; }
.toc-list a.is-active { background: color-mix(in srgb, var(--color-primary) 10%, #fff); border-left: 3px solid var(--color-primary); font-weight: 700; }

.policy__content { min-width: 0; }
.policy-section { padding-bottom: var(--space-8); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-8); }
.policy-section:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.policy-section ul { margin-top: var(--space-2); }
.policy-section li { margin-bottom: var(--space-1); }

/* Dark scheme tuning */
@media (prefers-color-scheme: dark) {
  .legal-hero { background: linear-gradient(90deg, rgb(var(--color-primary-rgb) / 0.12), rgba(255,255,255,0) 60%); }
  .toc-list a { color: var(--gray-900); }
}
