.site-footer {
    --footer-ink: #fff9f8;
    --footer-text: #d0c4c4;
    --footer-line: #493c3d;
    padding: clamp(48px, 5vw, 80px) 0 36px;
    background: radial-gradient(ellipse at 0 0, #351b1d, transparent 47%), #191617;
    color: var(--footer-ink);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.45fr .85fr 1.15fr .85fr;
    gap: clamp(24px, 4vw, 70px);
}
.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--footer-ink);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.05em;
    text-decoration: none;
}
.footer-brand-link:hover { color: white; }
.footer-brand .brand-app-icon { width: 48px; height: 48px; border-radius: 13px; }
.footer-brand p {
    max-width: 29ch;
    margin: 16px 0;
    color: var(--footer-text);
    font-size: .9375rem;
    line-height: 1.6;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--footer-line);
    border-radius: 50%;
    color: var(--footer-ink);
    text-decoration: none;
    transition: background-color .18s, border-color .18s;
}
.footer-socials a:hover { background: var(--primary-color); border-color: var(--primary-color); }

.footer-group h3 {
    margin: 8px 0 13px;
    color: var(--footer-ink);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.4;
}
.footer-group ul { list-style: none; margin: 0; padding: 0; }
.footer-group li + li { margin-top: 3px; }
.footer-group a, .footer-legal :is(a, button) {
    display: inline-block;
    padding: 5px 0;
    color: var(--footer-text);
    text-decoration: none;
    line-height: 1.5;
}
.footer-group a { font-size: .9375rem; }
.footer-group a:hover, .footer-legal :is(a, button):hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0;
    gap: 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
}
.footer-toggle i { color: #d6a6a6; font-size: .75rem; }
.footer-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.footer-group [hidden] { display: none; }

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px 28px;
    margin-top: clamp(32px, 4vw, 64px);
    padding-top: 22px;
    border-top: 1px solid var(--footer-line);
    font-size: .8125rem;
}
.footer-credit { display: grid; gap: 2px; color: #bfb0b1; line-height: 1.5; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.footer-legal button { border: 0; background: none; font: inherit; text-align: start; }
.footer-locale .locale-picker summary {
    min-height: 44px;
    border-color: var(--footer-line);
    background: #2a2223;
    color: var(--footer-ink);
}
.footer-locale .locale-picker summary i { color: #e2c5c6; transform: rotate(180deg); }
.footer-locale .locale-picker[open] summary i { transform: none; }
.footer-locale .locale-picker summary:hover,
.footer-locale .locale-picker[open] summary { border-color: #b58c8d; }
.footer-locale .locale-choices { top: auto; bottom: calc(100% + 8px); }
.site-footer :is(a, button, summary):focus-visible { outline: 2px solid #ffb8b6; outline-offset: 3px; }
.footer-locale .locale-choices a:focus-visible { outline-color: var(--primary-color); outline-offset: -2px; }

@media (min-width: 768px) and (max-width: 991px) {
    .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { grid-template-columns: 1fr auto; }
    .footer-legal { grid-area: 1 / 1; }
    .footer-credit { grid-area: 2 / 1; }
    .footer-locale { grid-area: 1 / 2 / 3 / 3; }
}
@media (max-width: 767px) {
    .site-footer { padding: 38px 0 68px; }
    .footer-main { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .footer-brand { margin-bottom: 26px; }
    .footer-group { border-top: 1px solid var(--footer-line); }
    .footer-group h3 { margin: 0; }
    .footer-group h3 > span { display: block; padding: 15px 0; }
    .footer-group h3 > span[hidden] { display: none; }
    .footer-group ul { padding-bottom: 12px; }
    .footer-group a { display: block; padding: 10px 0; }
    .footer-bottom { grid-template-columns: 1fr; margin-top: 0; gap: 16px; }
    .footer-legal { order: 0; gap: 2px 20px; }
    .footer-locale { order: 1; }
    .footer-locale .locale-choices { inset-inline: 0 auto; }
    .footer-credit { order: 2; }
}
