/* Stake-style site footer (link columns + legal) */

.stake-site-footer {
    background: var(--surface-lowest);
    border-top: 1px solid var(--border-subtle);
    padding: 32px 16px 24px;
    margin-top: auto;
}

body.has-mobile-nav-body .stake-site-footer {
    padding-bottom: calc(24px + var(--mobile-footer-height));
}

@media (min-width: 769px) {
    body.has-mobile-nav-body .stake-site-footer {
        padding-bottom: 32px;
    }
}

.stake-site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.stake-site-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin-bottom: 28px;
}

@media (min-width: 640px) {
    .stake-site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .stake-site-footer__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 20px 16px;
    }
}

.stake-site-footer__col-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.stake-site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stake-site-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    word-break: break-word;
}

.stake-site-footer__links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stake-site-footer__links a .stake-icon--external {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}

.stake-site-footer__divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 24px 0;
}

.stake-site-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.stake-site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.stake-site-footer__social a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.stake-site-footer__copyright {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.stake-site-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    margin-bottom: 16px;
}

.stake-site-footer__legal p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.stake-site-footer__legal a {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stake-site-footer__legal a:hover {
    color: var(--text-primary);
}

.stake-site-footer__rate {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.stake-site-footer__lang {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.stake-site-footer__lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--surface-highest);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background var(--transition-fast);
}

.stake-site-footer__lang-btn:hover {
    background: var(--surface-overlay);
}

.stake-site-footer__lang-btn .stake-icon {
    opacity: 0.8;
    flex-shrink: 0;
}

.footer-lang-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--surface-default);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.footer-lang-search-wrap {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-lang-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}

.footer-lang-search {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--surface-highest);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    outline: none;
}

.footer-lang-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.footer-lang-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: min(320px, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.footer-lang-list::-webkit-scrollbar {
    width: 6px;
}

.footer-lang-list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.footer-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.footer-lang-option:hover,
.footer-lang-option.active {
    background: var(--surface-highest);
}

.footer-lang-option.active .footer-lang-native {
    color: var(--primary-light);
}

.footer-lang-flag {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.footer-lang-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.footer-lang-native {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-lang-en {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-lang-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(var(--mobile-footer-height) + 12px);
        max-width: none;
    }

    .stake-site-footer__lang {
        max-width: none;
    }
}

.stake-site-footer__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.stake-site-footer__brand img {
    height: 40px;
    width: auto;
    max-width: 180px;
    opacity: 0.95;
    mix-blend-mode: screen;
}

.stake-site-footer__seals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.stake-site-footer__seals img {
    height: 40px;
    width: auto;
    opacity: 0.85;
}

.stake-site-footer__seals img.tanzanite {
    height: 48px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}
