/* =========================================================================
   PAGINAS LEGALES DIGITAL MAIPU
   ========================================================================= */

.dm-legal-page {
    padding: 26px 16px 46px;
    background: #f4f5f9;
}

.dm-legal-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 32px 34px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dm-legal-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin-bottom: 12px;
    color: #344488;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.dm-legal-back:hover {
    color: #6621CD;
}

.dm-legal-container h1 {
    margin: 0 0 6px;
    color: #1E1B4B;
    font-family: 'Poppins', sans-serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
}

.dm-legal-updated {
    margin: 0 0 22px;
    color: #64748B;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
}

.dm-legal-content {
    color: #334155;
    font-family: 'Open Sans', sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
}

.dm-legal-content h2 {
    margin: 26px 0 8px;
    color: #344488;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.dm-legal-content p {
    margin: 0 0 12px;
}

.dm-legal-content ul,
.dm-legal-content ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

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

.dm-legal-content a {
    color: #344488;
    font-weight: 600;
    text-decoration: underline;
}

.dm-legal-content strong {
    color: #1E293B;
}

.dm-legal-container a:focus-visible,
.dm-legal-container button:focus-visible,
.dm-legal-container input:focus-visible,
.dm-legal-container textarea:focus-visible {
    outline: 2px solid #344488 !important;
    outline-offset: 2px !important;
}

.dm-legal-contact {
    margin-top: 30px;
    padding: 18px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.dm-legal-contact h2 {
    margin: 0 0 8px;
    color: #344488;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.dm-legal-contact p {
    margin: 0 0 10px;
    color: #334155;
    font-size: 13.5px;
}

.dm-legal-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dm-legal-contact li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 40px;
    min-width: 0;
    color: #334155;
    font-size: 13.5px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dm-legal-contact li i {
    width: 18px;
    color: #FF6B00;
    text-align: center;
}

.dm-legal-contact li a {
    color: #344488;
    font-weight: 600;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dm-legal-contact-extra {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.dm-legal-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 16px;
    margin: 14px 0 18px;
}

@media (min-width: 768px) {
    .dm-legal-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dm-legal-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dm-legal-field-full {
    grid-column: 1 / -1;
}

.dm-legal-field label {
    color: #475569;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.dm-legal-field input,
.dm-legal-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: #1E293B;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    box-sizing: border-box;
}

.dm-legal-field textarea {
    min-height: 96px;
    resize: vertical;
}

.dm-legal-field input:focus,
.dm-legal-field textarea:focus {
    border-color: #344488;
    box-shadow: 0 0 0 3px rgba(52, 68, 136, 0.12);
}

.dm-legal-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 14px;
}

.dm-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #344488;
    border-radius: 8px;
    background: #ffffff;
    color: #344488;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dm-legal-btn:hover {
    background: #F1F3FF;
    transform: translateY(-1px);
}

.dm-legal-btn-wa {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.dm-legal-btn-wa:hover {
    background: #1FBF5A;
    border-color: #1FBF5A;
    color: #ffffff;
}

.dm-legal-note {
    margin: 0;
    color: #64748B;
    font-size: 12.5px;
    line-height: 1.6;
}

.dm-legal-note a {
    color: #344488;
    font-weight: 600;
}

.dm-legal-pending {
    color: #B45309;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
}

.dm-legal-btn.is-disabled,
.dm-legal-btn:disabled {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #64748B;
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
}

.dm-legal-btn.is-disabled:hover,
.dm-legal-btn:disabled:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #64748B;
    transform: none;
}

@media (max-width: 767px) {
    .dm-legal-page {
        padding: 18px 12px 34px;
    }

    .dm-legal-container {
        padding: 22px 18px 26px;
        border-radius: 12px;
    }

    .dm-legal-container h1 {
        font-size: 22px;
    }

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

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

    .dm-legal-form-actions {
        flex-direction: column;
    }

    .dm-legal-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dm-legal-btn {
        transition: none;
    }

    .dm-legal-btn:hover {
        transform: none;
    }
}
