/*
 * The privacy policy page's own styles. Moved out of an inline
 * <style> block, which the site's CSP (style-src-elem with a hash)
 * blocks, so they never applied (release QA XF-37 follow-up).
 */

.legal-section {
  padding: 160px 0 80px;
  min-height: 80vh;
  background: radial-gradient(circle at top right, rgba(1, 158, 168, 0.05), transparent 400px),
              radial-gradient(circle at bottom left, rgba(255, 191, 0, 0.05), transparent 400px);
}

.legal-card {
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .legal-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
}

.legal-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #019ea8 0%, #ffbf00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #019ea8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-content h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: #ffbf00;
  border-radius: 2px;
}

.legal-content p, .legal-content li {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
}

[data-theme="light"] .legal-content p,
[data-theme="light"] .legal-content li {
  color: #4a5568;
}

.legal-content ul {
  padding-left: 24px;
  list-style: disc;
}

.last-updated {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .legal-card { padding: 32px; }
  .legal-title { font-size: 2.5rem; }
  .legal-section { padding-top: 120px; }
}

/* Phones: the sticky navbar already takes its own space, so the section
   does not also need 120px above the card; keep the text 16px, not 18px,
   and give the prose the width the card's padding was eating. */
@media (max-width: 767px) {
  .legal-section { padding: 32px 0 56px; min-height: 0; }
  .legal-card { padding: 28px 20px; border-radius: 20px; }
  .legal-title { font-size: 2.25rem; margin-bottom: 16px; }
  .legal-content h2 { font-size: 1.25rem; margin: 32px 0 14px; align-items: flex-start; }
  .legal-content h2::before { flex-shrink: 0; margin-top: 3px; }
  .legal-content p,
  .legal-content li { font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
  .last-updated { margin-top: 36px; padding-top: 20px; opacity: 0.7; }
}
