.footer-legal {
    display: flex;
    gap: .45rem 1.3rem;
    flex-wrap: wrap;
    padding-block: 1rem 1.6rem;
    border-top: 1px solid currentColor;
    font-size: .9rem;
}

.footer-legal a {
    text-underline-offset: .2em;
}

.cookie-panel[hidden] {
    display: none;
}

.cookie-panel {
    position: fixed;
    z-index: 1000;
    inset-inline: 1rem;
    bottom: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    max-width: 46rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    box-sizing: border-box;
    margin-inline: auto;
    padding: clamp(.85rem, 3vw, 1.45rem);
    background: #fff;
    color: #24201d;
    border: 1px solid #ebd8c5;
    border-top: 4px solid #f58220;
    border-radius: 1rem;
    box-shadow: 0 10px 40px #1e17184d;
}

.cookie-panel h2 {
    margin: 0 0 .45rem;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
}

.cookie-panel p {
    margin: 0 0 .75rem;
    font-size: .95rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .65rem;
}

.cookie-actions button {
    flex: 1 1 11rem;
    padding: .6rem .9rem;
    border: 1px solid #3b2c20;
    border-radius: .6rem;
    background: #fff4e8;
    color: #201714;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-actions button:hover {
    background: #ffe2c5;
}

.cookie-panel a {
    color: #873909;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.cookie-panel :focus-visible {
    outline: 2px solid #873909;
    outline-offset: 3px;
}

.legal-copy {
    max-width: 52rem;
}

.legal-copy h2,
.legal-copy h3 {
    margin-block: 1.5rem .55rem;
}

.legal-copy dl {
    display: grid;
    grid-template-columns: minmax(10rem, max-content) 1fr;
    gap: .75rem 1.25rem;
    margin: 0;
}

.legal-copy dt {
    font-weight: 700;
}

.legal-copy dd {
    margin: 0;
}

@media (max-width: 480px) {
    .legal-copy dl { display: block; }
    .legal-copy dd { margin-bottom: .85rem; }
}
