/* Estilos específicos para enlaces en documentos legales */
.legal-section a {
    color: var(--bs-primary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 181, 202, 0.3);
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #ffffff;
    border-bottom: 1px solid var(--bs-primary);
}

/* Estilos para documentos relacionados */
.related-documents {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(30, 31, 48, 0.4);
    border-radius: 8px;
    border-left: 3px solid var(--bs-secondary);
}

.related-documents p {
    margin-bottom: 1rem;
    color: #ffffff;
}

.doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.doc-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 181, 202, 0.1);
    color: var(--bs-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(0, 181, 202, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.doc-link:hover {
    background: rgba(0, 181, 202, 0.2);
    color: #ffffff;
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 181, 202, 0.15);
}

/* Estilos para referencias legales */
.legal-reference {
    font-family: 'Courier New', monospace;
    background: rgba(30, 31, 48, 0.6);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--bs-secondary);
    margin: 1rem 0;
    color: #b8b8b8;
    font-size: 0.9rem;
}

/* Responsive para documentos relacionados */
@media (max-width: 768px) {
    .doc-links {
        flex-direction: column;
    }

    .doc-link {
        width: 100%;
        text-align: center;
    }
}

/* Mejora para listas anidadas */
.legal-subsection ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.legal-subsection ul ul li {
    margin-bottom: 0.4rem;
    color: #b8b8b8;
}

.legal-subsection ul ul li::marker {
    content: '∘';
    color: var(--bs-secondary);
}