/* Legal Pages Sidebar Styles */
.legal-page-container {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #FFFFED 0%, #f8f9fa 100%);
}

.legal-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-right: 2px solid #EB0029;
  padding: 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(235, 0, 41, 0.15);
  backdrop-filter: blur(10px);
}

.legal-sidebar-header {
  background: linear-gradient(135deg, #EB0029 0%, #c41e3a 100%);
  padding: 25px 20px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.legal-sidebar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.legal-sidebar-header h3 {
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

.legal-sidebar-header .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  margin: 5px 0 0 0;
  text-align: center;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-sidebar-nav {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
}

.legal-sidebar-nav li {
  margin: 0;
  position: relative;
}

.legal-sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 18px 25px;
  color: #333;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.legal-sidebar-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(235, 0, 41, 0.1), transparent);
  transition: left 0.5s ease;
}

.legal-sidebar-nav a:hover::before {
  left: 100%;
}

.legal-sidebar-nav a:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #EB0029;
  border-left-color: #EB0029;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(235, 0, 41, 0.15);
}

.legal-sidebar-nav a.active {
  background: linear-gradient(135deg, #EB0029 0%, #c41e3a 100%);
  color: white;
  border-left-color: #ffffff;
  box-shadow: 0 4px 15px rgba(235, 0, 41, 0.3);
  transform: translateX(5px);
}

.legal-sidebar-nav a.active::after {
  content: '●';
  position: absolute;
  right: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.legal-sidebar-nav a i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.legal-content {
  flex: 1;
  margin-left: 280px;
  padding: 20px;
  max-width: calc(100% - 280px);
}

.legal-content .privacy-policy-section {
  margin: 0;
  padding: 0;
}

.legal-content .privacy-policy-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Scrollbar Styling */
.legal-sidebar::-webkit-scrollbar {
  width: 6px;
}

.legal-sidebar::-webkit-scrollbar-track {
  background: rgba(235, 0, 41, 0.1);
}

.legal-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #EB0029, #c41e3a);
  border-radius: 3px;
}

.legal-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #c41e3a, #EB0029);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .legal-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 2px solid #EB0029;
    box-shadow: 0 4px 20px rgba(235, 0, 41, 0.15);
  }
  
  .legal-content {
    margin-left: 0;
    max-width: 100%;
  }
  
  .legal-sidebar-header {
    padding: 20px;
  }
  
  .legal-sidebar-header h3 {
    font-size: 1.2rem;
  }
  
  .legal-sidebar-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98);
  }
  
  .legal-sidebar-nav li {
    flex-shrink: 0;
  }
  
  .legal-sidebar-nav a {
    padding: 12px 20px;
    border-left: none;
    border-bottom: 3px solid transparent;
    min-width: 140px;
    justify-content: center;
    text-align: center;
  }
  
  .legal-sidebar-nav a:hover,
  .legal-sidebar-nav a.active {
    border-left: none;
    border-bottom-color: #EB0029;
    transform: translateY(-2px);
  }
  
  .legal-sidebar-nav a.active::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .legal-sidebar-header h3 {
    font-size: 1.1rem;
  }
  
  .legal-sidebar-header .subtitle {
    font-size: 0.75rem;
  }
  
  .legal-sidebar-nav a {
    padding: 10px 15px;
    font-size: 0.9rem;
    min-width: 120px;
  }
}
