.legal-guarantee-footer-entry {
    display: contents;
}

.legal-guarantee-footer-link {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .legal-guarantee-footer-link {
        white-space: nowrap;
    }

    .legal-guarantee-footer-link:lang(de) {
        white-space: normal;
    }
}

.legal-guarantee-footer-link:hover {
    text-decoration: underline;
}

.legal-guarantee-footer-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.borcook-footer-legal .legal-guarantee-footer-link {
    color: #d5ad45;
    font-weight: 600;
}

.borcook-footer-legal .legal-guarantee-footer-link:hover,
.borcook-footer-legal .legal-guarantee-footer-link:focus-visible {
    color: var(--borcook-accent);
}

.legal-guarantee-backdrop {
    align-items: center;
    background: rgba(0, 0, 0, .72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 9999;
}

.legal-guarantee-dialog {
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    color: #111;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    max-width: 48rem;
    outline: none;
    overflow: hidden;
    width: 100%;
}

.legal-guarantee-dialog-header {
    align-items: center;
    border-bottom: 1px solid #d8d8d8;
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.legal-guarantee-dialog-header h2 {
    color: #111;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.legal-guarantee-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .25rem;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 2.5rem;
    font-size: 2rem;
    height: 2.5rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.legal-guarantee-close:hover,
.legal-guarantee-close:focus-visible {
    background: #eee;
    outline: 2px solid #003399;
}

.legal-guarantee-dialog-content {
    overflow: auto;
    padding: 1rem 1.25rem 1.25rem;
    text-align: center;
}

.legal-guarantee-dialog-content img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    width: 38rem;
}

.legal-guarantee-link-label {
    font-weight: 600;
    margin: 1rem 0 .25rem;
}

.legal-guarantee-link {
    margin: 0;
    overflow-wrap: anywhere;
}

.legal-guarantee-link a {
    color: #003399;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .legal-guarantee-backdrop {
        padding: .5rem;
    }

    .legal-guarantee-dialog {
        max-height: calc(100vh - 1rem);
    }

    .legal-guarantee-dialog-header,
    .legal-guarantee-dialog-content {
        padding-left: .875rem;
        padding-right: .875rem;
    }
}
