/* Privacy Policy Page Styling */

.privacy-policy {
  padding: 4rem 0;
  line-height: 1.8;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.privacy-policy h1 {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.privacy-policy .last-updated {
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 2rem;
}

.privacy-policy section {
  margin-bottom: 2.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.privacy-policy h2 {
  font-size: 1.5rem;
  color: #1a365d;
  margin: 1.5rem 0 1rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.privacy-policy h3 {
  font-size: 1.2rem;
  color: #2d3748;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.privacy-policy p {
  margin: 1rem 0;
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.7;
}

.privacy-policy ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.privacy-policy li {
  margin-bottom: 0.75rem;
  color: #4a5568;
  line-height: 1.6;
}

.privacy-policy a {
  color: #4299e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.privacy-policy a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}

/* Logo Styling - Forced overrides */
.site-header .brand,
.privacy-policy .brand,
.site-footer .brand {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.site-header .brand-logo,
.privacy-policy .brand-logo,
.site-footer .brand-logo {
  height: 28px !important;
  width: auto !important;
  margin-right: 8px !important;
  max-width: 100% !important;
}

.site-header .brand-name,
.privacy-policy .brand-name,
.site-footer .brand-name {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Specific adjustments */
.privacy-policy .brand {
  margin: 0 auto 1.5rem !important;
  justify-content: center !important;
  max-width: 180px !important;
}

.site-header .brand {
  padding: 8px 0 !important;
}

.site-footer .brand {
  margin-bottom: 0.5rem !important;
}

/* Responsive Design */
@media (min-width: 768px) {
  .privacy-policy {
    padding: 4rem 2rem;
  }
  
  .privacy-policy h1 {
    font-size: 3rem;
  }
  
  .privacy-policy section {
    padding: 2rem;
  }
}

/* Animation for better UX */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.privacy-policy section {
  animation: fadeIn 0.3s ease-out forwards;
  opacity: 0;
}

/* Staggered animations */
.privacy-policy section:nth-child(1) { animation-delay: 0.1s; }
.privacy-policy section:nth-child(2) { animation-delay: 0.2s; }
.privacy-policy section:nth-child(3) { animation-delay: 0.3s; }
.privacy-policy section:nth-child(4) { animation-delay: 0.4s; }
.privacy-policy section:nth-child(5) { animation-delay: 0.5s; }
.privacy-policy section:nth-child(6) { animation-delay: 0.6s; }
.privacy-policy section:nth-child(7) { animation-delay: 0.7s; }
.privacy-policy section:nth-child(8) { animation-delay: 0.8s; }
.privacy-policy section:nth-child(9) { animation-delay: 0.9s; }
.privacy-policy section:nth-child(10) { animation-delay: 1s; }

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #4299e1;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #2b6cb0;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Table of Contents */
.toc {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid #4299e1;
}

.toc h3 {
  margin-top: 0;
  color: #2d3748;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: #4a5568;
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.toc a:hover {
  background: #edf2f7;
  color: #2b6cb0;
  padding-left: 0.75rem;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .back-to-top {
    display: none !important;
  }
  
  .privacy-policy {
    padding: 0 !important;
  }
  
  .privacy-policy section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
