/* legal.css - Estilos mejorados para páginas legales */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background-color: #ffffff;
    --text-color: #111111;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    --card-bg: #f9fafb;
    --footer-bg: #1f2937;
    --footer-text: #f3f4f6;
  }
  
  .dark-mode {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --card-bg: #1e1e1e;
    --footer-bg: #111827;
    --footer-text: #e5e7eb;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-top:100px;
  }
  
  /* Header */
  .main-header {
    background-color: var(--footer-bg);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }
  
  .header-actions button {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .header-actions button:hover {
    transform: scale(1.1);
  }
  
  /* Main Content */
  .legal-container {
    display: flex;
    flex: 1;
    padding-top: 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }
  
  .legal-sidebar {
    width: 250px;
    padding: 2rem 1rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
  }
  
  .legal-sidebar nav ul {
    list-style: none;
  }
  
  .legal-sidebar nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
  }
  
  .legal-sidebar nav a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
  }
  
  .legal-sidebar nav a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
  }
  
  .legal-content {
    flex: 1;
    padding: 2rem;
  }
  
  .legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
  }
  
  .section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .section-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  .legal-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .legal-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .legal-item p, .legal-item li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
  }
  
  .legal-item ul {
    padding-left: 1.5rem;
  }
  
  .legal-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .legal-item a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
  }
  
  .browser-guides {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .browser-guide {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    transition: transform 0.2s;
  }
  
  .browser-guide:hover {
    transform: translateY(-2px);
  }
  
  .browser-guide img {
    width: 24px;
    height: 24px;
  }
  
  /* Footer */
  .legal-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: auto;
  }
  
  .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-container p {
    font-size: 0.9rem;
  }
  
  .footer-container nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
  }
  
  .footer-container nav a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
  }
  
  .footer-container nav a:hover {
    opacity: 0.8;
  }
  
  /* Responsive */
  @media (max-width: 1024px) {
    .legal-container {
      flex-direction: column;
    }
    
    .legal-sidebar {
      width: 100%;
      position: static;
      height: auto;
      border-right: none;
      border-bottom: 1px solid var(--border-color);
      padding: 1rem;
    }
    
    .legal-sidebar nav ul {
      display: flex;
      overflow-x: auto;
      padding-bottom: 0.5rem;
    }
    
    .legal-sidebar nav a {
      white-space: nowrap;
    }
    
    .legal-content {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .header-container {
      padding: 1rem;
    }
    
    .legal-container {
      padding-top: 70px;
    }
    
    .section-header h1 {
      font-size: 1.75rem;
    }
    
    .browser-guides {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .footer-container nav ul {
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
    }
  }