/* Refined public footer */
.public-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: clamp(64px, 8vw, 96px);
    background: linear-gradient(135deg, #0b1727 0%, #14283d 58%, #193650 100%);
    color: #f8fafc;
}

.public-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #eeb615 0%, #f8d66a 50%, #eeb615 100%);
}

.public-footer::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -128px;
    bottom: -176px;
    border-radius: 50%;
    background: rgba(238, 182, 21, .08);
    pointer-events: none;
}

.public-footer .public-footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 24px;
}

.public-footer .footer-content {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin: 0;
}

.public-footer .footer-section {
    min-width: 0;
    padding: 0;
}

.public-footer .footer-brand-lockup {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.public-footer .footer-brand-mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8d66a, #eeb615);
    color: #172033;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

.public-footer .footer-brand-image {
    display: block;
    width: auto;
    max-width: 160px;
    height: 48px;
    object-fit: contain;
}

.public-footer .footer-brand-copy {
    display: grid;
    gap: 4px;
}

.public-footer .footer-brand-copy strong {
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.2;
}

.public-footer .footer-brand-copy span {
    color: #a9bacb;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.public-footer .footer-intro {
    max-width: 360px;
    margin: 24px 0;
    color: #cbd5e1;
    font-size: .9rem;
    line-height: 1.75;
}

.public-footer .footer-section h2 {
    margin: 0 0 16px;
    color: #f8d66a;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.public-footer .footer-section ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-footer .footer-links li,
.public-footer .footer-contact li {
    margin: 0;
    padding: 0;
}

.public-footer .footer-links a,
.public-footer .footer-contact li,
.public-footer .footer-contact a {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: .875rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.public-footer .footer-links a:hover,
.public-footer .footer-contact a:hover {
    color: #fff;
    transform: translateX(4px);
}

.public-footer .footer-links a:focus-visible,
.public-footer .footer-contact a:focus-visible,
.public-footer .footer-brand-lockup:focus-visible,
.public-footer .social-link:focus-visible {
    outline: 3px solid #f8d66a;
    outline-offset: 4px;
}

.public-footer .footer-links i,
.public-footer .footer-contact li > i {
    width: 20px;
    flex: 0 0 20px;
    color: #f8d66a;
    font-size: .85rem;
    text-align: center;
}

.public-footer .footer-contact li {
    align-items: flex-start;
}

.public-footer .footer-contact li > i {
    margin-top: 4px;
}

.public-footer .footer-contact a,
.public-footer .footer-contact span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-footer .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.public-footer .social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #e7eef6;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.public-footer .social-link:hover {
    border-color: #f8d66a;
    background: #eeb615;
    color: #172033;
    transform: translateY(-2px);
}

.public-footer .social-link.is-disabled {
    cursor: default;
    opacity: .66;
}

.public-footer .social-link.is-disabled:hover {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #e7eef6;
    transform: none;
}

.public-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #a9bacb;
    font-size: .8rem;
}

.public-footer .footer-bottom p,
.public-footer .footer-bottom-note {
    margin: 0;
}

.public-footer .footer-bottom-note {
    color: #a9bacb;
    text-align: right;
}

@media (max-width: 1024px) {
    .public-footer .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-footer .footer-brand-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .public-footer .public-footer-container {
        padding: 56px 20px calc(24px + env(safe-area-inset-bottom));
    }

    .public-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .public-footer .footer-brand-section {
        grid-column: auto;
    }

    .public-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 32px;
    }

    .public-footer .footer-bottom-note {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-footer .footer-links a,
    .public-footer .footer-contact a,
    .public-footer .social-link {
        transition: none;
    }
}
