/*
 * LOYALSON — SHARED FOOTER
 * Keep site.css unchanged.
 */

/* Foundation */

.nf-footer,
.nf-footer * {
    box-sizing: border-box;
}

.nf-footer {
    padding: 40px 0 22px;

    background: #f7f9fc;
    border-top: 1px solid #dce6f4;

    color: #0f172a;

    font:
        15px / 1.75
        "Open Sans",
        Arial,
        sans-serif;
}

.nf-wrap {
    width: min(100% - 48px, 1200px);
    margin-inline: auto;
}

.nf-footer h2 {
    margin: 0 0 12px;

    color: #0f172a;

    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.nf-footer p {
    margin: 0 0 14px;

    color: #526173;

    font-size: 15px;
    line-height: 1.75;
}

.nf-footer a {
    color: #334155;
    text-decoration: none;
}

.nf-footer a:hover {
    color: #155eef;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Newsletter panel */

.nf-news {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: start;

    margin-bottom: 36px;
    padding: 28px;

    background: #eef5ff;

    border: 1px solid #ccddf7;
    border-radius: 10px;
}

.nf-label {
    display: block;
    margin-bottom: 8px;

    color: #155eef;

    font-size: 14px;
    font-weight: 600;
}

.nf-news-copy p:last-child {
    margin-bottom: 0;
}

.nf-form > label {
    display: block;
    margin-bottom: 8px;

    color: #0f172a;

    font-size: 14px;
    font-weight: 600;
}

.nf-input-row {
    display: flex;
    gap: 10px;
}

.nf-footer input[type="email"] {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 48px;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #8998aa;
    border-radius: 4px;

    color: #0f172a;

    font:
        15px / 1.5
        "Open Sans",
        Arial,
        sans-serif;
}

.nf-footer .nf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    flex-shrink: 0;

    min-height: 48px;
    padding: 12px 20px;

    background: #155eef;

    border: 1px solid #155eef;
    border-radius: 2px;

    color: #ffffff;

    font:
        600 14px / 1.5
        "Open Sans",
        Arial,
        sans-serif;

    cursor: pointer;
}

.nf-footer .nf-submit:hover {
    background: #104dcc;
}

.nf-footer .nf-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-height: 44px;
    margin: 14px 0 0;

    color: #43536b;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;

    cursor: pointer;
}

.nf-consent input {
    flex-shrink: 0;

    width: 18px;
    height: 18px;

    margin: 4px 0 0;

    accent-color: #155eef;
}

.nf-consent a {
    color: #155eef;
    text-decoration: underline;
}

.nf-form .nf-small {
    margin: 8px 0 0;
    font-size: 14px;
}

/* Intentionally off-screen spam honeypot */

.nf-trap {
    position: absolute !important;
    left: -10000px !important;

    width: 1px;
    height: 1px;

    overflow: hidden;
}

/* Footer columns */

.nf-grid {
    display: grid;
    grid-template-columns:
        1.25fr 1fr 0.9fr 1.2fr;

    gap: 36px;
}

.nf-brand img {
    display: block;

    width: 82px;
    height: auto;

    margin-bottom: 18px;

    filter: none;
}

.nf-brand p {
    max-width: 240px;
    font-size: 14px;
}

.nf-grid h2 {
    margin: 0 0 14px;

    font-size: 14px;
    letter-spacing: 0;
}

.nf-links a,
.nf-contact > a {
    display: block;

    width: fit-content;
    min-height: 44px;

    padding-block: 8px;

    font-size: 14px;
    line-height: 1.6;
}

.nf-contact address {
    margin-top: 12px;

    color: #526173;

    font-size: 14px;
    font-style: normal;
}

.nf-note {
    display: block;
    margin: 6px 0 12px;

    color: #526173;

    font-size: 14px;
    line-height: 1.7;
}

/* Bottom strip */

.nf-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

    gap: 16px 28px;

    margin-top: 32px;
    padding-top: 20px;

    border-top: 1px solid #dce3eb;
}

.nf-bottom p {
    margin: 0;
    font-size: 14px;
}

.nf-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.nf-legal a {
    display: inline-flex;
    align-items: center;

    min-height: 44px;

    font-size: 14px;
}

/* Focus states */

.nf-footer a:focus-visible,
.nf-footer button:focus-visible,
.nf-footer input:focus-visible {
    outline: 3px solid #0f766e;
    outline-offset: 4px;
}

/* Newsletter confirmation / result page */

.nf-panel {
    width: min(100% - 40px, 720px);

    margin: 40px auto 48px;
    padding: 28px;

    background: #f4f8ff;

    border: 1px solid #d4e2f7;
    border-radius: 10px;

    color: #0f172a;

    font:
        16px / 1.8
        "Open Sans",
        Arial,
        sans-serif;
}

.nf-panel h1 {
    margin: 0 0 16px;

    color: #0f172a;

    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
}

.nf-panel p {
    margin: 0 0 20px;

    color: #526173;
    font-size: 16px;
}

.nf-panel form {
    margin-top: 20px;
}

.nf-panel .g-recaptcha {
    margin: 20px 0;
}

.nf-panel .nf-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 22px;

    background: #155eef;

    border: 1px solid #155eef;
    border-radius: 2px;

    color: #ffffff;

    font:
        600 14px / 1.5
        "Open Sans",
        Arial,
        sans-serif;

    text-decoration: none;
    cursor: pointer;
}

.nf-panel .nf-policy {
    margin-top: 20px;

    font-size: 14px;
    line-height: 1.7;
}

.nf-panel a {
    color: #155eef;
    text-decoration: underline;
}

.nf-panel .nf-action {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive */

@media (max-width: 1000px) {

    .nf-news {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nf-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px;
    }
}

@media (max-width: 600px) {

    .nf-footer {
        padding-top: 28px;
    }

    .nf-wrap {
        width: calc(100% - 40px);
    }

    .nf-news {
        gap: 22px;

        margin-bottom: 28px;
        padding: 22px;
    }

    .nf-footer .nf-news h2 {
        font-size: 21px;
    }

    .nf-input-row {
        flex-direction: column;
    }

    .nf-footer .nf-submit {
        width: 100%;
        justify-content: space-between;
    }

    .nf-grid {
        gap: 24px;
    }

    .nf-brand,
    .nf-contact {
        grid-column: 1 / -1;
    }

    .nf-brand p {
        max-width: none;
    }

    .nf-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
        margin-top: 24px;
    }

    .nf-legal {
        gap: 8px 20px;
    }

    .nf-panel {
        margin-block: 28px;
        padding: 24px 20px;
    }

    .nf-panel h1 {
        font-size: 24px;
    }
}