.legal-popup-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.bottom-footer__links .legal-popup-link,
.bottom_footer__line_links .legal-popup-link {
    position: relative;
    margin-right: 30px;
    color: #777;
}

.bottom_footer__line_links .legal-popup-link {
    font-size: 13px;
}

.bottom-footer__links .legal-popup-link {
    margin-right: var(--mb2, 30px);
}

.bottom-footer__links .legal-popup-link:not(:last-child)::after,
.bottom_footer__line_links .legal-popup-link:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 4px;
    right: -17px;
    bottom: 2px;
    border-right: 1px solid currentColor;
}

.legal-popup {
    width: min(50rem, calc(100% - 2rem));
    max-height: 85vh;
    max-height: 85dvh;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    color: #262026;
}

.legal-popup[open] {
    display: flex;
    flex-direction: column;
    animation: legal-popup-enter 280ms ease-out both;
}

.legal-popup::backdrop {
    background: rgb(0 0 0 / 55%);
}

.legal-popup[open]::backdrop {
    animation: popup-fade-in 240ms ease-out both;
}

.legal-popup[open].legal-popup--closing {
    animation: legal-popup-exit 200ms ease-in both;
}

.legal-popup[open].legal-popup--closing::backdrop {
    animation: popup-fade-out 200ms ease-in both;
}

@keyframes legal-popup-enter {
    from { opacity: 0; transform: translateY(-1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes legal-popup-exit {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-1rem); }
}

.legal-popup-header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 2.5rem 0.5rem;
}

.legal-popup-scroll {
    min-height: 0;
    padding: 0 2.5rem 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.legal-popup-close {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: -25px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.legal-popup-close:hover {
    background: #f4eef2;
}

.legal-popup-close svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: #555;
    stroke-width: 1;
    stroke-linecap: round;
}

.legal-page,
.legal-popup,
.legal-popup-content {
    font-size: 14px;
}

.legal-page h2,
.legal-popup-content h2,
.legal-popup-title {
    font-size: 24px;
}

.legal-page h3,
.legal-popup-content h3 {
    font-size: 20px;
}

.legal-popup-title {
    margin: 0;
    font-weight: 700;
}

.legal-popup-content {
    max-width: 48rem;
    margin: 0 auto;
}

.legal-popup-content .multiline {
    white-space: pre-line;
}

.legal-popup-content .legal-macro {
    color: #b01860;
    font-weight: 700;
}

.cookie-consent-layer::before {
    content: "";
    position: fixed;
    z-index: 1100;
    inset: 0;
    background: rgb(0 0 0 / 50%);
    pointer-events: auto;
}

.cookie-consent-banner {
    box-sizing: border-box;
    position: fixed;
    z-index: 1101;
    inset: auto 0 0;
    background: #fff;
    color: #222;
    box-shadow: 0 -3px 18px rgb(0 0 0 / 16%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 14px;
    padding: 16px max(16px, calc((100vw - 1100px) / 2));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
    .legal-popup--consent {
        width: min(40rem, calc(100% - 2rem));
    }

    .cookie-consent-banner {
        width: min(40rem, calc(100% - 2rem));
        min-height: 123px;
        margin-inline: auto;
        padding-inline: 16px;
    }
}

.cookie-consent-layer--enter::before {
    animation: popup-fade-in 240ms ease-out both;
}

.cookie-consent-layer--enter .cookie-consent-banner {
    animation: cookie-consent-slide-in 320ms ease-out both;
}

.cookie-consent-layer--exit::before {
    animation: popup-fade-out 240ms ease-in both;
}

.cookie-consent-layer--exit .cookie-consent-banner {
    animation: cookie-consent-slide-out 240ms ease-in both;
}

@keyframes popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popup-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes cookie-consent-slide-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes cookie-consent-slide-out {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.cookie-consent-banner--emulated {
    border-bottom: 3px solid #000;
}

.cookie-consent-banner-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.cookie-consent-banner p {
    margin: 0 0 4px;
}

.cookie-consent-banner .cookie-settings-link {
    font: inherit;
    vertical-align: baseline;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.cookie-consent-banner .cookie-consent-actions {
    margin-inline-start: auto;
}

.cookie-consent-preferences .cookie-consent-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cookie-consent-actions button[name="action"] {
    background: #fff;
    border: 2px solid var(--cookie-button-border, #333);
    border-radius: 4px;
    padding: 7px 12px;
    color: #222;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-actions button[value="accept"] {
    background: var(--cookie-accept-color, #333);
    color: var(--cookie-accept-text, #fff);
}

.cookie-consent-actions button[name="action"]:hover {
    box-shadow: inset 0 0 0 1px currentColor;
}

.cookie-consent-actions .cookie-consent-error {
    grid-column: 1 / -1;
}

@media (max-width: 420px) {
    .cookie-consent-preferences .cookie-consent-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cookie-consent-actions button:focus-visible,
.cookie-settings-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cookie-consent-actions button[name="action"]:focus-visible {
    outline-color: var(--cookie-button-border, #333);
}

.cookie-consent-purpose {
    margin: 12px 0;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.cookie-consent-purpose p {
    margin: 4px 0 0;
}

.cookie-consent-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-consent-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
}

.cookie-consent-toggle-track {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 48px;
    height: 26px;
    border: 1px solid #777;
    border-radius: 999px;
    background: #fff;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.cookie-consent-toggle-track::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #666;
    transition: transform 180ms ease, background-color 180ms ease;
}

.cookie-consent-toggle input:enabled + .cookie-consent-toggle-track {
    cursor: pointer;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-track {
    border-color: #333;
    background: #333;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-track::before {
    transform: translateX(22px);
    background: #fff;
}

.cookie-consent-toggle input:disabled + .cookie-consent-toggle-track {
    border-color: #666;
    background: #666;
}

.cookie-consent-toggle input:focus-visible + .cookie-consent-toggle-track {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (forced-colors: active) {
    .cookie-consent-toggle-track::before {
        border: 1px solid CanvasText;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-popup[open],
    .legal-popup[open].legal-popup--closing,
    .legal-popup[open]::backdrop,
    .legal-popup[open].legal-popup--closing::backdrop,
    .cookie-consent-layer--enter::before,
    .cookie-consent-layer--exit::before,
    .cookie-consent-layer--enter .cookie-consent-banner,
    .cookie-consent-layer--exit .cookie-consent-banner {
        animation: none;
    }

    .cookie-consent-toggle-track,
    .cookie-consent-toggle-track::before {
        transition: none;
    }
}

.cookie-settings-link {
    font-size: 13px;
}

.cookie-consent-error {
    color: #a51929;
}

.cookie-consent-error:empty {
    display: none;
}
