/* Privacy Policy Page Styles */
.privacy-policy-page {
  background-color: #f8f9fa;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Highlight target section when navigated to */
.policy-section:target {
  animation: highlightSection 2s ease-in-out;
}

@keyframes highlightSection {
  0% {
    background-color: rgba(140, 82, 255, 0.1);
    border-radius: 8px;
  }
  100% {
    background-color: transparent;
  }
}

/* Page Header */
.page-header {
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(140, 82, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #ffffff;
}

.breadcrumb-separator {
  opacity: 0.6;
}

.breadcrumb-current {
  opacity: 0.9;
}

/* Privacy Content */
.privacy-content {
  padding: 4rem 0;
}

.policy-document {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin-bottom: 2rem;
}

.policy-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.policy-section h2 {
  color: #8c52ff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(140, 82, 255, 0.2);
}

.policy-section h3 {
  color: #333;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 2rem 0 1rem 0;
}

.policy-section h4 {
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem 0;
}

.policy-section p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.effective-date {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-left: 4px solid #8c52ff;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.policy-list {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

.policy-list li {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  position: relative;
}

.policy-list li::marker {
  color: #8c52ff;
}

.security-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.policy-link {
  color: #8c52ff;
  text-decoration: none;
  border-bottom: 1px dotted #8c52ff;
  transition: all 0.3s ease;
}

.policy-link:hover {
  color: #6c3ce6;
  border-bottom-style: solid;
}

/* Contact Details in Policy Content Only */
.policy-document .contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.policy-document .contact-method {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #8c52ff;
}

.policy-document .contact-method h4 {
  color: #8c52ff;
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.policy-document .contact-method p {
  margin: 0;
  line-height: 1.5;
}

.policy-document .contact-method small {
  color: #888;
  font-style: italic;
}

.response-time {
  background: #e8f5e8;
  border: 1px solid #c3e6c3;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Sidebar */
.policy-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-section {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-section h3 {
  color: #8c52ff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  color: #666;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.sidebar-nav a:hover {
  color: #8c52ff;
  border-left-color: #8c52ff;
  padding-left: 1rem;
}

.related-policies {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-policies li {
  margin-bottom: 0.75rem;
}

.related-policies a {
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.related-policies a:before {
  content: "📄";
  margin-right: 0.5rem;
}

.related-policies a:hover {
  color: #8c52ff;
}

.privacy-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  overflow: hidden;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #666;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.highlight-item i {
  color: #8c52ff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.highlight-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8c52ff 0%, #6c3ce6 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(140, 82, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #6c3ce6 0%, #5a2dd1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(140, 82, 255, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .policy-document {
    padding: 2rem;
  }
  
  .privacy-content {
    padding: 2rem 0;
  }
  
  .policy-document .contact-details {
    grid-template-columns: 1fr;
  }
  
  .policy-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .page-header {
    padding: 2rem 0 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .policy-document {
    padding: 1.5rem;
    margin: 0 0.5rem 2rem;
  }
  
  .policy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .policy-section h2 {
    font-size: 1.5rem;
  }
  
  .breadcrumb-nav {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .privacy-highlights {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .highlight-item {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .highlight-item i {
    font-size: 1rem;
  }
  
  /* Back to top button mobile adjustments */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .back-to-top i {
    font-size: 1.3rem;
  }
}
