.dwch .dwch-footer-legal {
    position: relative;
    background: #FFFFFF;
    overflow: hidden;
    border-top: 2px solid var(--dwch-accent);
}
.dwch .dwch-footer-legal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/pattern.png');
    background-repeat: repeat;
    background-position: center 18px;
    filter: invert(1);
    opacity: 0.5;
    pointer-events: none;
}
.dwch .dwch-footer-legal-panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.dwch .dwch-footer-legal-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: var(--dwch-body);
}
.dwch .dwch-footer-legal a { color: var(--dwch-body); }
.dwch .dwch-footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

@media (max-width: 600px) {
    .dwch .dwch-footer-legal {
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-top: 2px solid var(--dwch-accent);
    }
    .dwch .dwch-footer-legal-panel {
        order: 0;
        height: 0;
        transition: height 0.4s ease;
    }
    .dwch .dwch-footer-legal .dwch-bar-handle {
        display: flex;
        order: 1;
        flex: none;
        align-self: center;
        margin: 8px 0;
        overflow-anchor: none;
    }
    .dwch .dwch-footer-legal .dwch-bar-handle .dwch-icon { transform: rotate(180deg); }
    .dwch .dwch-footer-legal.dwch-bar-open .dwch-bar-handle .dwch-icon { transform: rotate(0deg); }
    .dwch .dwch-footer-legal-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 4px 0 14px;
    }
    .dwch .dwch-footer-legal-panel,
    .dwch .dwch-footer-legal-inner { overflow-anchor: none; }
    .dwch .dwch-footer-legal-links { justify-content: center; }
}
