/* Estilos específicos para páginas legales */

.legal-page {
    padding-top: 100px;
    min-height: 100vh;
}

.legal-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.legal-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.legal-header .last-updated {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 10px;
}

.legal-content {
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    white-space: pre-line;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    margin-top: 50px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    line-height: 1;
}

.legal-content h2:first-of-type {
    margin-top: 30px;
}

.legal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #FFD700;
    margin-top: 35px;
    margin-bottom: 18px;
    line-height: 1;
}

.legal-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 215, 0, 0.9);
    margin-top: 28px;
    margin-bottom: 15px;
    line-height: 1;
}

.legal-content p {
    margin-bottom: 0px;
    text-align: justify;
    hyphens: auto;
    line-height: 1.4;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content ul,
.legal-content ol {
    margin: 24px 0;
    padding-left: 35px;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content li {
    margin-bottom: 0px;
    line-height: 1;
    padding-left: 8px;
}

.legal-content li:last-child {
    margin-bottom: 0;
}

.legal-content ul ul,
.legal-content ol ol,
.legal-content ul ol,
.legal-content ol ul {
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 25px;
}

.legal-content strong {
    color: #FFD700;
    font-weight: 600;
}

.legal-content em {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.legal-content a {
    color: #FFD700;
    text-decoration: underline;
    transition: color 0.3s ease;
    word-break: break-word;
}

.legal-content a:hover {
    color: #FFC107;
    text-decoration: underline;
}

.legal-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    font-style: italic;
}

.legal-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.legal-content table thead {
    background: rgba(255, 215, 0, 0.1);
}

.legal-content table th,
.legal-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content table th {
    color: #FFD700;
    font-weight: 600;
}

.legal-footer {
    margin-top: 70px;
    padding-top: 35px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.legal-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.legal-footer p:last-of-type {
    margin-bottom: 0;
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #4A148C;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 80px;
    }

    .legal-container {
        padding: 35px 20px;
    }

    .legal-header {
        margin-bottom: 35px;
        padding-bottom: 25px;
    }

    .legal-header h1 {
        font-size: 28px;
        line-height: 1;
    }

    .legal-content {
        font-size: 15px;
        line-height: 1.2;
    }

    .legal-content h2 {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .legal-content h3 {
        font-size: 20px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .legal-content h4 {
        font-size: 17px;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .legal-content p {
        margin-bottom: 18px;
        text-align: left;
        line-height: 1.4;
    }

    .legal-content ul,
    .legal-content ol {
        margin: 20px 0;
        padding-left: 25px;
    }

    .legal-content li {
        margin-bottom: 12px;
    }

    .legal-footer {
        margin-top: 50px;
        padding-top: 30px;
    }

    .back-link {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 25px 15px;
    }

    .legal-header h1 {
        font-size: 24px;
    }

    .legal-content {
        font-size: 14px;
    }

    .legal-content h2 {
        font-size: 22px;
    }

    .legal-content h3 {
        font-size: 18px;
    }

    .legal-content h4 {
        font-size: 16px;
    }
}
