/**
 * ============================================================================
 * Estilos Comunes para Páginas Legales - AgorAI
 * ============================================================================
 * 
 * Estilos compartidos para todas las páginas legales
 * 
 * ============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Tipografía Base
   ========================================================================== */

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Layout Base
   ========================================================================== */

.legal-page {
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(235, 0, 182, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(13, 3, 38, 1) 0%, rgba(8, 6, 24, 1) 100%);
    padding: 20px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: none !important;
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}

.legal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: none !important;
    color: white;
    padding: 40px;
    text-align: center;
}

.legal-header h1 {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin: 30px 0 15px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #00bfff 0%, #EB00B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: none;
    padding-bottom: 0;
}

.legal-header h1 i {
    background: linear-gradient(135deg, #00bfff 0%, #EB00B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 10px;
}

.legal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
}

.legal-content {
    padding: 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Tipografía
   ========================================================================== */

.legal-content h2 {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin: 30px 0 15px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #00bfff 0%, #EB00B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: none;
    padding-bottom: 0;
}

.legal-content h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    margin: 25px 0 10px 0;
    font-weight: 600;
}

.legal-content h3 i,
.legal-content p strong i,
.legal-content li i {
    margin-right: 8px;
}

.legal-content h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin: 20px 0 8px 0;
    font-weight: 600;
}

.legal-content p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    font-family: 'DM Sans', sans-serif;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 15px 0;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
}

.legal-content li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
}

.legal-content strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.legal-content a {
    color: #00bfff;
    text-decoration: underline;
    transition: color 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.legal-content a:hover {
    color: #EB00B6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.legal-footer {
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-top: none !important;
    text-align: center;
}

.legal-footer p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.site-header {
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(235, 0, 182, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(13, 3, 38, 1) 0%, rgba(8, 6, 24, 1) 100%);
    backdrop-filter: blur(10px);
    border-bottom: none !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #00bfff 0%, #EB00B6 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.4);
}


/* ==========================================================================
   Tablas
   ========================================================================== */

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px;
}


.legal-content th,
.legal-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
}

.legal-content th {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.legal-content tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.legal-content td:first-child {
    font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .legal-page {
        padding: 10px;
    }
    
    .legal-header {
        padding: 30px 20px;
    }
    
    .legal-header h1 {
        font-size: 24px;
    }
    
    .legal-content {
        padding: 20px;
    }
    
    .legal-footer {
        padding: 15px 20px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Tablas con scroll horizontal en mobile - solo las tablas */
    .legal-content {
        overflow-x: visible;
    }

    /* La tabla actúa como contenedor de scroll - SOLO EN MOBILE */
    .legal-content > table {
        display: block !important;
        overflow: visible !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
    }

    /* Mantener estructura de tabla dentro del contenedor de scroll */
    .legal-content > table > thead {
        display: table-header-group !important;
    }

    .legal-content > table > tbody {
        display: table-row-group !important;
    }

    .legal-content > table > thead > tr,
    .legal-content > table > tbody > tr {
        display: table-row !important;
    }

    .legal-content > table > thead > tr > th,
    .legal-content > table > thead > tr > td,
    .legal-content > table > tbody > tr > th,
    .legal-content > table > tbody > tr > td {
        display: table-cell !important;
    }

    /* Sobrescribir reglas generales de tabla en mobile */
    .legal-content > table {
        min-width: 600px !important;
        font-size: 0.85rem !important;
        border-collapse: collapse !important;
    }

    .legal-content > table th,
    .legal-content > table td {
        padding: 8px !important;
        white-space: nowrap !important;
    }
}

