/* ===== CSS BASE LEGAL PAGE ===== */
.legal-page {
    background: linear-gradient(135deg, var(--color-bg) 0%, #0d1117 100%);
    min-height: 100vh;
    padding: 2rem 0 4rem;
}

.legal-hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    position: relative;
    /*background: linear-gradient(135deg, rgba(0, 255, 200, 0.03) 0%, transparent 50%);*/
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    border-radius: 2px;
}

.legal-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.legal-fecha {
    color: var(--color-subtle);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.legal-intro {
    background: var(--color-glass);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.legal-intro h2 {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-intro p {
    color: var(--color-subtle);
    font-size: 1.1rem;
    line-height: 1.6;
}

.legal-section {
    background: var(--color-glass);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.legal-section:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 200, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.legal-section:hover::before {
    opacity: 1;
}

.legal-section h2 {
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h3 {
    color: var(--color-text);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

.legal-section p {
    color: var(--color-subtle);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-section ul {
    color: var(--color-subtle);
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.7;
}

.legal-section li {
    margin-bottom: 0.5rem;
    position: relative;
}

.legal-section li::marker {
    color: var(--color-accent);
}

.legal-section strong {
    color: var(--color-text);
    font-weight: 600;
}

.responsable-info {
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.responsable-info p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.volver {
    text-align: center;
    margin: 3rem 0 2rem;
}

.volver .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.1) 0%, rgba(0, 255, 200, 0.05) 100%);
    color: var(--color-accent);
    text-decoration: none;
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.volver .btn-cta:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, #00e6b8 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 200, 0.3);
}

/* ===== ESTILOS ESPECÍFICOS PARA COOKIES ===== */

/* Estilos específicos para tablas de cookies */
.cookies-table {
    background: var(--color-glass);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
    width: 100%;
}

.cookies-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.cookies-table th {
    background: rgba(0, 255, 200, 0.1);
    color: var(--color-accent);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookies-table td {
    padding: 1rem;
    color: var(--color-subtle);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

.cookies-table tr:hover {
    background: rgba(0, 255, 200, 0.02);
}

.cookie-name {
    font-weight: 600;
    color: var(--color-text);
    font-family: monospace;
    font-size: 0.85rem;
    background: rgba(0, 255, 200, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.cookie-duration {
    font-weight: 500;
    color: var(--color-accent);
}

.cookie-type {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.cookie-type.first-party {
    background: rgba(0, 255, 200, 0.2);
    color: var(--color-accent);
}

.cookie-type.third-party {
    background: rgba(255, 200, 0, 0.2);
    color: #ffcc00;
}

/* Sección de tipos de cookies */
.cookie-type-section {
    background: var(--color-glass);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.cookie-type-section.technical {
    border-left: 4px solid var(--color-accent);
}

.cookie-type-section.analytics {
    border-left: 4px solid #ffcc00;
}

.cookie-type-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.cookie-type-section:hover::before {
    opacity: 1;
}

.cookie-type-section h3 {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-type-section.analytics h3 {
    color: #ffcc00;
}

/* Enlaces externos */
.external-link {
    color: var(--color-accent);
    text-decoration: none;
    word-break: break-all;
    font-size: 0.9rem;
}

.external-link:hover {
    text-decoration: underline;
    color: #00e6b8;
}

/* Lista de instrucciones */
.instruction-list {
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.instruction-list ul {
    margin: 0;
    color: var(--color-text);
}

.instruction-list li {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

/* Alertas de advertencia */
.warning-box {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h4 {
    color: #ffcc00;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.warning-box p {
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Información de terceros */
.third-party-info {
    background: rgba(255, 200, 0, 0.05);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.third-party-info h4 {
    color: #ffcc00;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.third-party-info p {
    margin-bottom: 0.5rem;
}

.third-party-info a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 500;
}

.third-party-info a:hover {
    text-decoration: underline;
    color: #ffdd44;
}

/* Responsive para tablas */
@media (max-width: 768px) {
    .legal-hero {
        padding: 3rem 1rem 2rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .cookies-table {
        font-size: 0.8rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 0.8rem 0.5rem;
    }

    .cookie-name {
        font-size: 0.75rem;
        padding: 0.1rem 0.3rem;
    }

    /* En móvil, hacer tabla scrollable horizontalmente */
    .cookies-table {
        overflow-x: auto;
    }

    .cookies-table table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .cookies-table table {
        min-width: 500px;
    }

    .instruction-list,
    .warning-box,
    .third-party-info {
        padding: 1rem;
    }
}