/* Standardized Modal System (cont-modal) */
.cont-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cont-modal.is-active {
    display: flex;
}

.cont-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.cont-modal .modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: #fff;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-up 0.3s ease-out;
}

@keyframes modal-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cont-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cont-modal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}
.cont-modal pre {
    white-space: break-spaces;
}
.cont-modal .modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cont-modal .modal-close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

.cont-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
}

.cont-modal .modal-body p {
    margin-bottom: 1.5em;
}

/* Modal Content Styling (Policies) */
.borom-policy-content h1, 
.borom-policy-content h2, 
.borom-policy-content h3 {
    color: var(--dark);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
