.site-footer {
    background: var(--dark);
    color: #dbe7f4;
    padding: 34px max(22px, calc((100vw - var(--max)) / 2));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-left,
.site-footer-right,
.site-footer-column {
    flex: 1;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.site-footer-brand:hover {
    text-decoration: none;
}

.site-footer-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: hidden;
}

.site-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-footer p {
    margin: 0;
    max-width: 520px;
    color: #aebdd0;
    font-size: 15px;
    line-height: 1.7;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 700;
    font-size: 14px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.site-footer li {
    margin: 0;
}

.site-footer a {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    transition: 0.2s ease;
}

.site-footer a:hover {
    color: #9fc8ff;
    text-decoration: none;
}

.site-footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #93a6bc;
    font-size: 14px;
}

.site-footer-bottom a {
    color: #cfe3ff;
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
}

.site-footer-social a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.site-footer-wrap {
    width: 100%;
}

@media (max-width: 860px) {
    .site-footer {
        flex-direction: column;
        gap: 26px;
        padding: 30px 22px;
    }

    .site-footer-left,
    .site-footer-right,
    .site-footer-column {
        width: 100%;
    }

    .site-footer p {
        max-width: 100%;
    }

    .site-footer nav,
    .site-footer ul {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 26px 16px;
        gap: 22px;
    }

    .site-footer-brand {
        font-size: 20px;
    }

    .site-footer-logo {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .site-footer nav,
    .site-footer ul {
        grid-template-columns: 1fr;
    }

    .site-footer-bottom {
        font-size: 13px;
    }

    .site-footer-social {
        gap: 10px;
    }

    .site-footer-social a {
        width: 34px;
        height: 34px;
    }
}

/* Footer responsible-gambling resources and legal copy */
.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 0.8fr) minmax(260px, 1fr);
    gap: 30px;
    align-items: start;
}

.site-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.responsible-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.responsible-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}

.responsible-button:hover,
.responsible-button:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
}

.site-footer-legal {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 10px;
}

.site-footer-legal p {
    max-width: 980px;
    font-size: 14px;
    line-height: 1.7;
}

.site-footer-legal a {
    color: #cfe3ff;
    font-weight: 800;
}

.internal-link {
    color: var(--brand);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.internal-link:hover {
    color: var(--brand-dark, #8f0d17);
    text-decoration-thickness: 3px;
}

.internal-link:focus-visible {
    outline: 3px solid rgba(193, 18, 31, 0.28);
    outline-offset: 3px;
    border-radius: 6px;
}

.related-links {
    background: linear-gradient(135deg, #ffffff, #f4f8fc);
}

@media (max-width: 860px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .responsible-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .responsible-links {
        grid-template-columns: 1fr;
    }

    .responsible-button {
        width: 100%;
    }
}

/* Shared footer brand layout support */
.site-footer-wrap {
    width: 100%;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.site-footer-brand:hover {
    text-decoration: none;
}

.site-footer-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: hidden;
}

.site-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
}

