/* =====================================================
   DEPARTAMENTO LEGAL — DIOS TE BENDIGA
   ===================================================== */

.legal-DTB {
    box-sizing: border-box;
    width: min(100% - 2rem, 1200px);
    margin: 10rem auto 9rem;
    color: #f7f7f7;
}

.legal-DTB__panel {
    box-sizing: border-box;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-radius: 1rem;
    background: rgb(48 92 69);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
}

/* Contenedor del documento */

.legal-DTB .legal-page {
    width: 100%;
    min-width: 0;
}

.legal-DTB .legal-title {
    margin: 0 0 1.75rem;
    color: #f0cc72;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.legal-DTB .legal-content {
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.legal-DTB .legal-content h2 {
    margin: 2rem 0 .75rem;
    color: #f0cc72;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.35;
}

.legal-DTB .legal-content h2:first-child {
    margin-top: 0;
}

.legal-DTB .legal-content p {
    margin: 0 0 1rem;
}

.legal-DTB .legal-content ul,
.legal-DTB .legal-content ol {
    padding-left: 1.5rem;
    margin: 0 0 1.25rem;
}

.legal-DTB .legal-content li {
    margin-bottom: .5rem;
}

.legal-DTB .legal-content strong {
    color: #fff;
}

.legal-DTB .legal-content a {
    color: #f0cc72;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* Navegación entre documentos legales */

.legal-DTB .chapter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .65rem;
    width: 100%;
    box-sizing: border-box;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .25);
}

.legal-DTB .study-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: .7rem 1rem;
    border: 1px solid rgba(240, 204, 114, .65);
    border-radius: .5rem;
    background: rgba(0, 0, 0, .12);
    color: #f0cc72;
    font: inherit;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .2s ease, color .2s ease;
}

.legal-DTB .study-button:hover {
    background: #e4b84b;
    color: #171717;
}

.legal-DTB .study-button:focus-visible,
.legal-DTB .legal-content a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Adaptación a pantallas pequeñas */

@media (max-width: 600px) {
    .legal-DTB {
        width: calc(100% - 1.25rem);
        margin-top: 2rem;
        margin-bottom: 7rem;
    }

    .legal-DTB__panel {
        padding: 1.1rem;
        border-radius: .75rem;
    }

    .legal-DTB .chapter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .legal-DTB .study-button {
        width: 100%;
    }
}