/* Shared site footer (included once per page via control/templates/footer.cfm). */

.ds-site-footer {
    margin-top: 28px;
    padding: 20px 16px 32px;
    text-align: center;
    font-size: 14px;
    font-family: Arial, sans-serif;
    line-height: 1.55;
}

.ds-site-footer-inner {
    max-width: 920px;
    margin: 0 auto;
}

.ds-site-footer nav,
.ds-site-footer-links {
    display: block;
    line-height: 1.45;
}

.ds-site-footer a {
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 3px;
    padding: 2px 0;
    border-radius: 4px;
    white-space: nowrap;
}

.ds-site-footer-sep {
    display: inline;
    margin: 0 0.28em;
    font-weight: 700;
    user-select: none;
}

.ds-site-footer.ds-site-footer--dark .ds-site-footer-sep {
    color: #b8a6ff;
}

.ds-site-footer.ds-site-footer--light .ds-site-footer-sep {
    color: #4338ca;
}

@media (max-width: 420px) {
    .ds-site-footer {
        font-size: 12.5px;
    }

    .ds-site-footer-sep {
        margin: 0 0.2em;
    }
}

.ds-site-footer a:hover,
.ds-site-footer a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.ds-site-footer-copy {
    margin: 16px 0 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    opacity: 0.92;
}

/* Dark pages (signup, legal, user dashboard, etc.) */
.ds-site-footer.ds-site-footer--dark {
    color: #8f9db8;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.ds-site-footer.ds-site-footer--dark a {
    color: #b8a6ff;
}

.ds-site-footer.ds-site-footer--dark a:hover,
.ds-site-footer.ds-site-footer--dark a:focus-visible {
    color: #e8e0ff;
}

/* Light marketing / control dashboard */
.ds-site-footer.ds-site-footer--light {
    color: #5f6f83;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.ds-site-footer.ds-site-footer--light a {
    color: #4338ca;
}

.ds-site-footer.ds-site-footer--light a:hover,
.ds-site-footer.ds-site-footer--light a:focus-visible {
    color: #5b21b6;
}

/* --- Public Privacy/Terms modals (js/modal.js — Mission:Job pattern) --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(4, 8, 16, 0.72);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.ds-public-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, rgba(19, 24, 40, 0.98) 0%, rgba(12, 16, 29, 0.98) 100%);
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    z-index: 1001;
    max-width: min(560px, 92vw);
    width: 100%;
    max-height: min(80vh, 720px);
    overflow: hidden;
    color: #c9d6ee;
}

.modal.ds-public-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(154, 171, 222, 0.22);
    flex-shrink: 0;
}

.modal.ds-public-modal .modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #b8a6ff;
    text-shadow: 0 0 14px rgba(184, 166, 255, 0.35);
}

.modal.ds-public-modal .modal-close {
    appearance: none;
    background: rgba(27, 35, 60, 0.9);
    border: 1px solid rgba(154, 171, 222, 0.35);
    color: #edf2ff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.modal.ds-public-modal .modal-close:hover {
    border-color: rgba(172, 141, 255, 0.75);
    color: #ffffff;
}

.modal.ds-public-modal .modal-content {
    padding: 16px 18px 20px;
    overflow-y: auto;
    max-height: calc(min(80vh, 720px) - 58px);
    font-size: 14px;
    line-height: 1.55;
    color: #c9d6ee;
    text-align: left;
}

.modal.ds-public-modal .modal-content .legal-meta {
    font-size: 13px;
    color: #9eb0c7;
    margin: 0 0 12px;
}

.modal.ds-public-modal .modal-content .legal-intro {
    margin: 0 0 16px;
    color: #c9d6ee;
}

.modal.ds-public-modal .modal-content .legal-doc h3 {
    font-size: 1.02rem;
    color: #f0f5ff;
    margin: 1.1rem 0 0.5rem;
    font-weight: 700;
}

.modal.ds-public-modal .modal-content .legal-doc p {
    margin: 0 0 10px;
    color: #c9d6ee;
}

.modal.ds-public-modal .modal-content .legal-doc ul {
    margin: 0 0 12px 1.05rem;
    padding: 0;
    color: #c9d6ee;
}

.modal.ds-public-modal .modal-content .legal-doc li {
    margin-bottom: 0.4rem;
}

body.modal-open {
    overflow: hidden;
}
