.portal-legal-footer {
    background: #102f27;
    color: #e4efe8;
    border-top: 1px solid #27493b;
}

.portal-legal-footer__inner {
    width: min(100%, 1264px);
    margin-inline: auto;
    padding: 30px 24px 19px;
    box-sizing: border-box;
}

.portal-legal-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px 48px;
}

.portal-legal-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: fit-content;
    max-width: 480px;
    color: #f0f8f2;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.42;
}

.portal-legal-footer__brand img {
    flex: 0 0 auto;
    object-fit: contain;
}

.portal-legal-footer__brand span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.portal-legal-footer__nav h2 {
    margin: 0 0 10px;
    color: #f0f8f2;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.portal-legal-footer__nav ul {
    display: grid;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-legal-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    color: #d4e6da;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: #719b84;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.portal-legal-footer a:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

.portal-legal-footer a:focus-visible {
    outline: 2px solid #b9e9ce;
    outline-offset: 4px;
}

.portal-legal-footer__copyright {
    margin: 22px 0 0;
    padding-top: 14px;
    border-top: 1px solid #365647;
    color: #bdd4c6;
    font-size: 13px;
    line-height: 1.5;
}

.portal-legal-footer--accessible {
    border-top: 1px solid currentColor;
    background: inherit;
    color: inherit;
}

.portal-legal-footer--accessible :is(a, a:hover, h2, .portal-legal-footer__copyright) {
    color: inherit;
    border-color: currentColor;
    text-decoration-color: currentColor;
}

.portal-legal-footer--accessible a:focus-visible {
    outline-color: currentColor;
}

.portal-privacy-page {
    margin: 0;
    color: #142b24;
    background: #f4f6f2;
    font-family: Ubuntu, system-ui, sans-serif;
    line-height: 1.55;
}

.portal-privacy-page a:focus-visible {
    outline: 2px solid #117553;
    outline-offset: 4px;
}

.portal-privacy-header {
    padding-block: 12px;
    border-top: 4px solid #166047;
    border-bottom: 1px solid #d9e3dc;
    background: #fff;
}

.portal-privacy-header a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(calc(100% - 36px), 880px);
    margin-inline: auto;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.portal-privacy-header img {
    flex: none;
    object-fit: contain;
}

.portal-privacy-content {
    width: min(calc(100% - 36px), 880px);
    margin: 30px auto 44px;
}

.portal-privacy-back {
    color: #166047;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.portal-privacy-content h1 {
    margin: 14px 0 9px;
    font-size: clamp(29px, 5vw, 45px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.portal-privacy-lead {
    max-width: 68ch;
    margin: 0 0 22px;
    color: #415b4e;
    font-size: 17px;
}

.portal-privacy-sections {
    display: grid;
    gap: 12px;
}

.portal-privacy-sections section {
    padding: 17px 20px;
    border: 1px solid #d9e3dc;
    border-radius: 12px;
    background: #fff;
}

.portal-privacy-sections h2 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.3;
}

.portal-privacy-sections p {
    margin: 0;
}

.portal-privacy-sections p + p {
    margin-top: 8px;
}

.portal-privacy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.portal-privacy-links a {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid #bdd3c4;
    border-radius: 8px;
    color: #166047;
    background: #eef6ef;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.portal-privacy-links a:hover {
    background: #e1efe4;
    text-decoration: underline;
}

@media (max-width: 675px) {
    .portal-legal-footer__inner {
        padding: 23px 16px 18px;
    }

    .portal-legal-footer__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
    }

    .portal-legal-footer__nav a {
        min-height: 36px;
    }

    .portal-legal-footer__copyright {
        padding-inline-end: 62px;
    }

    .portal-privacy-sections section {
        padding: 14px;
    }
}
