.footer .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer {
    width: 100%;
    border-top: 1px solid var(--border, rgba(255,255,255,0.09));
    padding: 40px 0 20px;
}
.footer-top {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}
.footer-brand { max-width: 260px; }
.footer-logo {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 12px;
    color: #fff;
}
.footer-brand p {
    font-size: 0.82rem;
    color: var(--muted, rgba(255,255,255,0.45));
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 48px;
    margin-left: auto;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted, rgba(255,255,255,0.45));
    margin-bottom: 4px;
}
.footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid var(--border, rgba(255,255,255,0.09));
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted, rgba(255,255,255,0.45));
}
.footer-bottom a { color: var(--accent, #38BDF8); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

html[data-theme="light"] .footer-logo { color: #0f172a; }
html[data-theme="light"] .footer-col a { color: rgba(15,23,42,.55); }
html[data-theme="light"] .footer-col a:hover { color: #0f172a; }

@media (max-width: 768px) {
    .footer-top    { flex-direction: column; gap: 32px; }
    .footer-links  { margin-left: 0; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}