.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 7px;
    margin-top: 8px;
    font-size: 13px;
}

.site-footer-links a,
.cookie-settings-link,
.legal-document a,
.contact-consent a,
.cookie-panel a {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.contact .contact-form .contact-consent {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-width: 0;
    color: #41352f;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.contact .contact-form .contact-consent input {
    appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #777;
    border-radius: 0;
    background: transparent;
    color-scheme: light;
    cursor: pointer;
}

.contact-consent input:checked::before {
    content: "";
    width: 5px;
    height: 8px;
    border: solid #b72c20;
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg);
}

.contact-legal-tail .contact-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    margin-top: clamp(10px, 2vw, 26px);
}

.contact-legal-tail .contact-actions > button {
    justify-self: end;
}

.contact-legal-tail .contact-actions > p {
    grid-column: 1 / -1;
    text-align: right;
}

.legal-page .legal-document {
    width: min(760px, calc(100% - var(--rail-left) - var(--rail-right) - 24px));
    min-height: 70vh;
    margin: 0 auto 0 max(var(--rail-left), calc((100% - var(--rail-right) - 760px) / 2));
    padding: clamp(32px, 8vw, 96px) 0 clamp(40px, 8vw, 90px);
    font: 400 clamp(16px, 1.15vw, 18px)/1.55 Nimbus, Arial, sans-serif;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .legal-page .nav {
        position: relative;
        inset: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        margin: 8px 12px 0;
        padding: 8px 10px;
        gap: 6px 14px;
    }

    .legal-page .nav .mark {
        width: 82px;
        height: 30px;
        margin: 0;
    }

    .legal-page .legal-document {
        width: min(760px, calc(100% - 2 * clamp(16px, 6vw, 48px)));
        margin-inline: auto;
    }
}

@media (max-width: 560px) {
    .contact-legal-tail .contact-actions {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }
}

@media (forced-colors: active) {
    .contact .contact-form .contact-consent input {
        appearance: auto;
    }

    .contact-consent input:checked::before {
        display: none;
    }
}

.legal-document h1 {
    margin: clamp(24px, 4vw, 48px) 0 10px;
    font-size: clamp(30px, 5.2vw, 60px);
    line-height: 1;
    letter-spacing: -.045em;
}

.legal-document h2 {
    margin: 1.65em 0 .45em;
    font-size: clamp(20px, 2.7vw, 28px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.legal-document p,
.legal-document ul {
    margin: 0 0 .75em;
}

.legal-document ul {
    padding-left: 1.35em;
}

.legal-document li + li {
    margin-top: .28em;
}

.legal-document .legal-date,
.legal-document .legal-back {
    color: var(--muted);
    font-size: 14px;
}

.legal-document .legal-date {
    margin-bottom: 1.35em;
}

.cookie-panel {
    position: fixed;
    z-index: 1000;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: min(420px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    overflow: auto;
    padding: 16px;
    border: 1px solid #49504b;
    border-radius: 12px;
    background: #292e2c;
    color: #f3f5e9;
    box-shadow: 0 10px 30px #0005;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-panel p {
    margin: 0 0 12px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cookie-actions button {
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #a2a99e;
    border-radius: 8px;
    background: transparent;
    color: #f3f5e9;
    font: inherit;
    cursor: pointer;
}

.cookie-options {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

.cookie-options legend {
    margin-bottom: 5px;
}

.cookie-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.cookie-options input {
    width: 17px;
    height: 17px;
    accent-color: #ff967f;
}

.cookie-panel :focus-visible,
.cookie-settings-link:focus-visible,
.contact-consent :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

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