
.page-shell {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding: 56px 0 72px;
}

.info-card {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 44px 34px;
    text-align: center;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 70px rgba(0,0,0,0.34);
}

.info-card--narrow {
    width: min(720px, 100%);
}

.info-logo {
    width: 132px;
    margin: 0 auto 22px;
    filter: drop-shadow(0 12px 22px rgba(240,164,41,0.16));
}

.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    color: #111823;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffd390 0%, #f0a429 100%);
}

.info-title {
    margin: 18px 0 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: .95;
    letter-spacing: -.05em;
}

.info-text {
    margin: 18px auto 0;
    width: min(560px, 100%);
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.info-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.page-link {
    min-width: 180px;
}

@media (max-width: 767px) {
    .page-shell {
        padding: 28px 0 40px;
        align-items: flex-start;
    }

    .info-card,
    .info-card--narrow {
        padding: 32px 22px;
        border-radius: 24px;
    }
}



.site-footer {
    position: relative;
    margin-top: 0;
    padding: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 209, 138, 0.18), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(92, 131, 255, 0.16), transparent 24%),
        radial-gradient(circle at 50% 120%, rgba(125, 77, 255, 0.18), transparent 32%),
        linear-gradient(180deg, #09111b 0%, #0b1624 42%, #08111d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.045) 50%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 36%);
    opacity: 0.7;
    pointer-events: none;
}

.footer-shell {
    position: relative;
    overflow: visible;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 44px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer-shell::before {
    content: none;
}


.footer-shell::after {
    content: none;
}


.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}

.footer-col-left { justify-self: start; }
.footer-col-center { justify-self: center; }
.footer-col-right { justify-self: end; }

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
}

.footer-social {
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .22s ease, color .22s ease, opacity .22s ease, text-shadow .22s ease;
}

.footer-social:hover,
.footer-legal-link:hover,
.footer-email:hover,
.footer-brand:hover {
    transform: translateY(-2px);
}

.footer-social:hover {
    color: #ffffff;
    text-shadow: 0 0 22px rgba(255, 214, 145, 0.28);
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icon svg,
.footer-social-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.footer-social-icon svg { fill: currentColor; }

.footer-meta {
    display: grid;
    gap: 8px;
    color: rgba(235, 241, 255, 0.62);
    font-size: 0.95rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .25s ease, filter .25s ease;
}

.footer-brand img {
    width: 98px;
    height: 98px;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.28));
}

.footer-legal {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.footer-legal-link,
.footer-email {
    color: rgba(235, 241, 255, 0.76);
    text-decoration: none;
    transition: color .22s ease, transform .22s ease, opacity .22s ease, border-color .22s ease;
}

.footer-legal-link {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-email {
    display: inline-flex;
    align-items: center;
}

.footer-legal-link:hover,
.footer-email:hover {
    color: #ffffff;
}

.footer-legal-link:hover {
    border-color: rgba(255, 214, 145, 0.42);
}

.legal-shell {
    padding-top: 64px;
}

.legal-card {
    padding: 36px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18, 27, 42, 0.94), rgba(11, 18, 30, 0.96));
    box-shadow: 0 28px 62px rgba(0,0,0,.28);
}

.legal-content {
    margin-top: 26px;
    display: grid;
    gap: 20px;
    color: rgba(224, 232, 255, 0.8);
    line-height: 1.72;
}

.legal-content section {
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.legal-content h2 {
    margin: 0 0 10px;
    color: #f2f6ff;
    font-size: 1.1rem;
}

.legal-content p,
.legal-content a {
    color: rgba(224, 232, 255, 0.82);
}

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-left,
    .footer-col-center,
    .footer-col-right {
        justify-self: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-legal {
        justify-items: center;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 72px;
        padding-bottom: 22px;
    }

    .footer-shell,
    .legal-card {
        padding: 24px 18px;
    }

    .footer-grid {
        gap: 22px;
    }

    .footer-brand img {
        width: 74px;
        height: 74px;
    }

    .footer-meta,
    .footer-legal {
        font-size: 0.92rem;
    }
}


/* v8 fixes */
.legal-card {
    padding: 44px 46px;
}

.legal-card .info-badge,
.legal-card .info-title,
.legal-card .info-text {
    text-align: left;
}

.legal-card .info-title {
    max-width: none;
    width: 100%;
    line-height: 1.02;
}

.legal-card .info-text {
    width: min(920px, 100%);
    margin: 18px 0 0;
    line-height: 1.7;
}

.legal-content {
    margin-top: 30px;
    gap: 26px;
}

.legal-content section {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.legal-content section + section {
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.legal-content h2 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.legal-content p,
.legal-content a {
    font-size: 1rem;
}

@media (max-width: 900px) {
    .legal-card {
        padding: 32px 24px;
    }
}

.legal-actions {
    display: flex;
    align-items: flex-start;
    margin: 0 0 18px;
}

.page-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
    box-shadow: 0 12px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
    color: #f2f6ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.page-back-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 198, 112, 0.35);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    box-shadow: 0 16px 30px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.1);
}

.page-back-button:focus-visible {
    outline: 2px solid rgba(255, 198, 112, 0.85);
    outline-offset: 3px;
}


/* small-screen polish */
@media (max-width: 720px) {
    .info-title {
        line-height: 1;
    }

    .info-text {
        font-size: 15px;
        line-height: 1.65;
    }

    .info-actions {
        gap: 10px;
    }

    .page-link {
        width: 100%;
        min-width: 0;
    }

    .legal-card {
        padding: 28px 20px;
    }

    .legal-content {
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .info-card,
    .info-card--narrow,
    .legal-card {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .legal-content section + section {
        padding-top: 18px;
    }
}
