.footer {
    padding: 3rem 1.25rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
    color: var(--ink-soft);
}

.footer::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 auto 3rem;
    max-width: var(--container-max-width);
    background-image: linear-gradient(90deg, transparent 0%, var(--line) 12%, var(--line) 88%, transparent 100%);
}

.footer-columns {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media screen and (min-width: 700px) {
    .footer-columns {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 3rem;
    }
}

@media screen and (min-width: 1000px) {
    .footer {
        padding: 4rem 2rem 2.5rem;
    }

    .footer-columns {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 22rem;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-brand strong {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.social-media-icons {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--ink);
    box-shadow:
        inset 0 0 0 1px var(--line),
        0 1px 2px 0 rgba(20, 18, 28, 0.04);
    transition: transform 0.4s var(--ease-out-expo), color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
}

.social-icon:hover {
    transform: translateY(-2px) rotate(-4deg);
    background-color: var(--pink);
    color: var(--surface);
    box-shadow:
        inset 0 0 0 1px var(--pink),
        0 12px 24px -10px rgba(255, 79, 190, 0.45);
}

.footer-list {
    --list-color: var(--purple);
    --subtitle-color: var(--list-color);
    color: var(--ink-soft);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.footer-list .subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list a {
    color: var(--ink-soft);
    transition: color 0.3s ease;
    position: relative;
}

.footer-list a:hover {
    color: var(--list-color);
}

.footer-list.is-product { --list-color: var(--coral); }
.footer-list.is-resources { --list-color: var(--sun-deep); }
.footer-list.is-about { --list-color: var(--leaf); }
.footer-list.is-contact { --list-color: var(--blue); }

.footer-list.is-contact address {
    line-height: 1.6;
    color: var(--ink-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-list.is-contact a {
    color: var(--purple-deep);
    word-break: break-word;
}

.footer-brand strong {
    font-size: 0.9rem;
}

.footer-brand p {
    font-size: 0.85rem !important;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    color: var(--ink-muted);
    font-size: 0.78rem;
}

.footer-bottom a {
    color: var(--ink-soft);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--purple);
}

.footer-bottom .credit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.footer-bottom .credit-flag {
    width: 1.15rem;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 53, 128, 0.18);
}
