/* Portal footer — mobile first */

.portal-footer {
    background-color: var(--white-color);
    border-top: 1px solid var(--gray-color);
    padding: 24px 16px;
    font-size: 0.8rem;
    color: var(--dark-gray-color);
    box-sizing: border-box;
}

.portal-footer__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-footer__brand-name {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--black-color);
}

.portal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.portal-footer__link {
    color: var(--link-color);
    text-decoration: none;
}

.portal-footer__link:hover {
    text-decoration: underline;
}

.portal-footer__requisites {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.5;
}

.portal-footer__age-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--dark-gray-color);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: medium;
    color: var(--dark-gray-color);
    flex-shrink: 0;
}

.portal-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-color);
}

.portal-footer__copyright {
    flex: 1;
}

@media (min-width: 768px) {
    .portal-footer {
        padding: 32px 24px;
    }

    .portal-footer__inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .portal-footer__brand {
        width: 100%;
    }

    .portal-footer__links {
        flex: 1;
        min-width: 200px;
    }

    .portal-footer__requisites {
        flex: 2;
        min-width: 280px;
    }

    .portal-footer__bottom {
        width: 100%;
    }
}
