/* CFM shared footer - all application areas */

.cfm-site-footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid #2a3d55;
    background: #0a1320;
    color: #95a8bf;
}

.cfm-site-footer__inner {
    box-sizing: border-box;
    width: min(calc(100% - 36px), 1180px);
    min-height: 76px;
    margin-inline: auto;
    padding-block: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cfm-site-footer__identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.cfm-site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #eef4ff;
    font-size: 13px;
    font-weight: 700;
}

.cfm-site-footer__brand i {
    color: #7db5ff;
    font-size: 17px;
}

.cfm-site-footer__copyright {
    color: #95a8bf;
    font-size: 12px;
}

.cfm-site-footer__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cfm-site-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b1c1d6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color .15s ease;
}

.cfm-site-footer__links a:hover,
.cfm-site-footer__links a:focus-visible {
    color: #7db5ff;
}

@media (max-width: 640px) {
    .cfm-site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .cfm-site-footer__links {
        gap: 16px;
    }
}
/* CFM_STANDARD_FOOTER_LAYOUT_V1 */

/* Consistent page structure across all application areas */
body.cfm-home,
body.cfm-admin,
body.cfm-company,
body.cfm-user,
body.cfm-auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Content expands on short pages and flows naturally on long pages */
body.cfm-home > main,
body.cfm-admin > main,
body.cfm-company > main,
body.cfm-user > main,
body.cfm-auth > main {
    flex: 1 0 auto;
}

/* Prevent authentication pages from reserving an extra viewport */
body.cfm-auth > main.auth-main {
    min-height: 0;
}

/* Shared footer dimensions */
.cfm-site-footer {
    width: 100%;
    min-height: 76px;
    flex: 0 0 auto;
    align-self: stretch;
    margin-top: auto;
    box-sizing: border-box;
}

.cfm-site-footer__inner {
    min-height: 76px;
    box-sizing: border-box;
}
