.dd-site-footer {
    --footer-ink: #0f172a;
    --footer-muted: #475569;
    --footer-line: #e2e8f0;
    --footer-accent: #be123c;
    border-top: 1px solid var(--footer-line);
    background: #fff;
    color: var(--footer-ink);
}

.dd-site-footer-shell {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.dd-site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, .75fr)) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(20px, 3.5vw, 48px);
    padding-block: clamp(28px, 4vw, 44px);
}

.dd-site-footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.dd-site-footer-wordmark img {
    width: 40px;
    height: 40px;
    flex: none;
}

.dd-site-footer-brand p,
.dd-site-footer-contact p {
    margin: 9px 0 0;
    color: var(--footer-muted);
    font-size: 14px;
    line-height: 1.6;
}

.dd-site-footer-brand p {
    max-width: 29ch;
}

.dd-site-footer-grid h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
}

.dd-site-footer-grid ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.dd-site-footer-grid nav a,
.dd-site-footer-legal :is(a, button) {
    display: inline-block;
    padding-block: 5px;
    color: var(--footer-muted);
    font-size: 14px;
    line-height: 1.5;
    text-underline-offset: 4px;
}

.dd-site-footer :is(a, button):focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.dd-site-footer-grid nav a:hover,
.dd-site-footer-email:hover,
.dd-site-footer-legal :is(a, button):hover {
    color: var(--footer-accent);
    text-decoration: underline;
}

.dd-site-footer-contact {
    min-width: 0;
    padding: 16px;
    border: 1px solid #ffe4e6;
    border-radius: 14px;
    background: #fff7f8;
}

.dd-site-footer-contact p {
    margin-top: 5px;
}

.dd-site-footer-email {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    max-width: 100%;
    margin-top: 9px;
    color: var(--footer-accent);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-underline-offset: 4px;
}

.dd-site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.dd-site-footer-social a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--footer-line);
    border-radius: 9px;
    color: var(--footer-muted);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.dd-site-footer-social a:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    color: var(--footer-accent);
}

.dd-site-footer-social svg {
    width: 16px;
    height: 16px;
}

.dd-site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px 20px;
    padding-block: 11px;
    border-top: 1px solid var(--footer-line);
    color: var(--footer-muted);
}

.dd-site-footer-legal p,
.dd-site-footer-legal :is(a, button) {
    margin: 0;
    font-size: 13px;
}

.dd-site-footer-legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.dd-site-footer-legal button[hidden] {
    display: none;
}

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

@media (max-width: 560px) {
    .dd-site-footer-brand,
    .dd-site-footer-contact {
        grid-column: span 2;
    }

    .dd-site-footer-grid {
        row-gap: 24px;
    }

    .dd-site-footer-legal {
        padding-block: 14px;
    }
}
