:root {
    --privacy-green: #143d32;
    --privacy-green-deep: #0c2b23;
    --privacy-lime: #d9f36b;
    --privacy-cream: #f6f3e9;
    --privacy-ink: #1e2d28;
    --privacy-muted: #617069;
    --privacy-line: #dbe4df;
}

body.has-privacy-dialog { overflow: hidden; }

.footer-modal-link {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-modal-link::after { content: ""; position: absolute; right: 100%; bottom: 6px; left: 0; height: 1px; background: #c8d08c; transition: right .18s ease; }
.footer-modal-link:hover::after,.footer-modal-link:focus-visible::after { right: 0; }

.footer-modal-link:hover,
.footer-modal-link:focus-visible { color: var(--privacy-lime); }

.cookie-banner {
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
    bottom: -420px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding: 22px 24px;
    border: 1px solid rgb(20 61 50 / 14%);
    border-radius: 22px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 24px 70px rgb(12 43 35 / 24%);
    backdrop-filter: blur(14px);
}

.cookie-banner.show { bottom: max(20px, env(safe-area-inset-bottom)); }
.cookie-banner-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: var(--privacy-green); color: #fff; }
.cookie-banner-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cookie-banner-copy small,.cookie-card-head>div>span,.newsletter-dialog-intro>span { color: #627534; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.cookie-banner-copy h2 { margin: 3px 0 5px; color: var(--privacy-ink); font-size: 22px; }
.cookie-banner-copy p { max-width: 680px; margin: 0; color: var(--privacy-muted); font-size: 13px; line-height: 1.55; }
.cookie-banner-copy a { display: inline-block; margin-top: 5px; color: #52642b; font-size: 12px; font-weight: 800; }
.cookie-actions { display: flex; align-items: center; gap: 9px; }
.cookie-action { min-height: 43px; padding: 0 16px; border: 1px solid var(--privacy-line); border-radius: 11px; background: #fff; color: var(--privacy-ink); font: 800 12px/1 'DM Sans',sans-serif; cursor: pointer; }
.cookie-action:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgb(20 61 50 / 10%); }
.cookie-action:focus-visible,.newsletter-submit:focus-visible,.back-to-top:focus-visible,.footer-modal-link:focus-visible { outline: 3px solid var(--privacy-lime); outline-offset: 3px; }
.cookie-action.is-primary { border-color: var(--privacy-green); background: var(--privacy-green); color: #fff; }
.cookie-action.is-settings { border-color: #9aac58; background: #f6f9e9; color: #3f5124; }

dialog.cookie-modal,dialog.newsletter-dialog { display: none; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--privacy-ink); }
dialog.cookie-modal[open],dialog.newsletter-dialog[open] { display: block; }
dialog.cookie-modal::backdrop,dialog.newsletter-dialog::backdrop { background: rgb(6 25 20 / 68%); backdrop-filter: blur(3px); }
dialog.cookie-modal { width: min(880px, calc(100% - 32px)); margin: auto; }
.cookie-card { overflow: hidden; width: 100%; max-height: min(820px, calc(100vh - 32px)); max-height: min(820px, calc(100dvh - 32px)); margin: 0; padding: 0; overflow-y: auto; border-radius: 26px; background: #fff; box-shadow: 0 35px 100px rgb(0 0 0 / 30%); }
.cookie-card-head { position: relative; padding: 30px 72px 21px 30px; border-bottom: 1px solid var(--privacy-line); background: linear-gradient(135deg,#edf5ef,#faf7ee); }
.cookie-card-head h2 { margin: 5px 0 7px; font-size: clamp(26px,4vw,36px); letter-spacing: -.035em; }
.cookie-card-head p { max-width: 610px; margin: 0; color: var(--privacy-muted); font-size: 14px; line-height: 1.55; }
.cookie-modal-close,.newsletter-dialog-close { position: absolute; top: 20px; right: 20px; display: grid; width: 42px; height: 42px; padding: 11px; place-items: center; border: 1px solid var(--privacy-line); border-radius: 50%; background: #fff; color: var(--privacy-ink); cursor: pointer; }
.cookie-modal-close svg,.newsletter-dialog-close svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cookie-current-choice { display: flex; align-items: center; gap: 12px; margin: 20px 30px 5px; padding: 13px 15px; border: 1px solid #dce8bb; border-radius: 13px; background: #f6fae9; }
.cookie-current-choice>span { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #647635; color: #fff; font-weight: 900; }
.cookie-current-choice p { display: grid; gap: 2px; margin: 0; }
.cookie-current-choice small { color: #68725c; }
.cookie-category-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px 30px 26px; }
.cookie-category { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; margin: 0; padding: 17px; border: 1px solid var(--privacy-line); border-radius: 15px; background: #fff; cursor: pointer; }
.cookie-category:hover { border-color: #a8b892; background: #fbfcf8; }
.cookie-category-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #eef3ec; color: #556550; font-size: 11px; font-weight: 900; }
.cookie-category strong,.cookie-category h3 { display: block; margin: 0 0 4px; color: var(--privacy-ink); font-size: 15px; }
.cookie-category small,.cookie-category p { display: block; margin: 0; color: var(--privacy-muted); font-size: 12px; line-height: 1.5; }
.cookie-category.is-required { cursor: default; }
.cookie-category.is-required>div:nth-child(2) { min-width: 0; }
.cookie-category.is-required button { margin-top: 7px; padding: 0; border: 0; background: none; color: #53652c; font-size: 12px; font-weight: 800; cursor: pointer; }
.cookie-category-details { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cookie-category-details code { padding: 4px 7px; border-radius: 6px; background: #edf2ef; font-size: 11px; }
.cookie-always-on { padding: 7px 10px; border-radius: 999px; background: #eaf2d2; color: #4c6026; font-size: 10px; font-weight: 900; white-space: nowrap; }
.cookie-switch { position: relative; width: 48px; height: 28px; }
.cookie-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cookie-switch>span { position: absolute; inset: 0; border-radius: 999px; background: #cdd6d1; transition: .2s ease; }
.cookie-switch>span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgb(0 0 0 / 20%); transition: .2s ease; }
.cookie-switch input:checked+span { background: var(--privacy-green); }
.cookie-switch input:checked+span::after { transform: translateX(20px); }
.cookie-switch input:focus-visible+span { outline: 3px solid var(--privacy-lime); outline-offset: 3px; }
.cookie-card-actions { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 30px 21px; border-top: 1px solid var(--privacy-line); background: rgb(255 255 255 / 96%); backdrop-filter: blur(10px); }
.cookie-card-actions>a { color: #53652c; font-size: 12px; font-weight: 800; }
.cookie-card-actions>div { display: flex; gap: 9px; }

.a11y-trigger { left: max(20px,env(safe-area-inset-left)) !important; right: auto !important; }
.back-to-top-tools { position: relative; z-index: 449; }
.back-to-top { position: fixed; right: max(20px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); z-index: 449; display: grid; width: 58px; height: 58px; padding: 8px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--privacy-green); color: #fff; text-decoration: none; box-shadow: 0 14px 34px rgb(13 43 35 / 30%); cursor: pointer; transition: opacity .2s,transform .2s,visibility .2s; }
.back-to-top[hidden] { display: grid; opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
.back-to-top svg { width: 24px; height: 24px; margin-bottom: -5px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top span { font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.back-to-top:hover { background: var(--privacy-green-deep); transform: translateY(-2px); }

dialog.newsletter-dialog { width: min(920px,calc(100% - 32px)); margin: auto; }
.newsletter-dialog-shell { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(340px,1.1fr); overflow: hidden; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 28px; background: #fff; box-shadow: 0 35px 100px rgb(0 0 0 / 34%); }
.newsletter-dialog-close { z-index: 2; }
.newsletter-dialog-intro { padding: 48px 42px; background: radial-gradient(circle at 15% 90%,rgb(217 243 107 / 18%),transparent 34%),var(--privacy-green); color: #fff; }
.newsletter-dialog-intro>span { color: var(--privacy-lime); }
.newsletter-dialog-mark { display: grid; width: 62px; height: 62px; margin: 28px 0 20px; place-items: center; border: 1px solid rgb(255 255 255 / 20%); border-radius: 18px; background: rgb(255 255 255 / 9%); }
.newsletter-dialog-mark svg { width: 31px; fill: none; stroke: var(--privacy-lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.newsletter-dialog-intro h2 { margin: 0 0 14px; color: #fff; font-size: clamp(29px,4vw,42px); line-height: 1.08; letter-spacing: -.04em; }
.newsletter-dialog-intro p { color: #d6e1dd; font-size: 14px; line-height: 1.65; }
.newsletter-dialog-intro ul { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; color: #e7eeeb; font-size: 12px; list-style: none; }
.newsletter-dialog-intro li::before { content: "✓"; margin-right: 8px; color: var(--privacy-lime); font-weight: 900; }
.newsletter-dialog-form { align-self: center; display: grid; gap: 11px; min-width: 0; padding: 56px 42px 38px; }
.newsletter-dialog-form>label { color: var(--privacy-ink); font-size: 13px; font-weight: 800; }
.newsletter-dialog-form>input[type="email"] { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid #cfdad4; border-radius: 12px; color: var(--privacy-ink); font: 16px/1 'DM Sans',sans-serif; }
.newsletter-dialog-form>input[type="email"]:focus { border-color: #788d43; outline: 3px solid rgb(217 243 107 / 45%); }
.newsletter-submit { min-height: 50px; border: 0; border-radius: 12px; background: var(--privacy-green); color: #fff; font-weight: 900; cursor: pointer; }
.newsletter-dialog-form>.compact-captcha { margin: 4px 0; padding: 12px; border: 1px solid var(--privacy-line); border-radius: 12px; }
.newsletter-dialog-form .compact-captcha-main { gap: 8px; }
.newsletter-dialog-form .compact-captcha-image img { max-width: 112px; height: 76px; object-fit: cover; }
.newsletter-dialog-form>small { color: var(--privacy-muted); font-size: 10px; line-height: 1.5; }
.newsletter-dialog-form>small a { color: #52642c; font-weight: 800; }
.newsletter-error { color: #a23d32; font-size: 12px; font-weight: 750; }

@media (max-width: 900px) {
    .cookie-banner { grid-template-columns: auto 1fr; }
    .cookie-actions { grid-column: 1/-1; width: 100%; justify-content: flex-end; }
    .newsletter-dialog-shell { grid-template-columns: 1fr; }
    .newsletter-dialog-intro { padding: 38px 32px 30px; }
    .newsletter-dialog-mark,.newsletter-dialog-intro ul { display: none; }
    .newsletter-dialog-intro h2 { margin-top: 18px; }
    .newsletter-dialog-form { padding: 30px 32px 36px; }
    .cookie-category-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .footer-modal-link { width: 100%; }
    .cookie-banner { left: 10px; right: 10px; bottom: -620px; grid-template-columns: 1fr; width: auto; padding: 18px; border-radius: 18px; }
    .cookie-banner.show { bottom: max(10px,env(safe-area-inset-bottom)); }
    .cookie-banner-icon { display: none; }
    .cookie-banner-copy h2 { font-size: 20px; }
    .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-actions .cookie-action { width: 100%; }
    .cookie-actions .is-primary { grid-column: 1/-1; grid-row: 1; }
    dialog.cookie-modal { width: 100%; max-width: none; margin: auto 0 0; }
    dialog.newsletter-dialog { width: calc(100% - 16px); }
    .cookie-card { max-height: calc(100dvh - 8px); border-radius: 22px 22px 0 0; }
    .newsletter-dialog-shell { max-height: calc(100dvh - 16px); border-radius: 20px; }
    .cookie-card-head { padding: 24px 62px 18px 20px; }
    .cookie-current-choice { margin: 14px 16px 3px; }
    .cookie-category-list { padding: 12px 16px 18px; }
    .cookie-category { grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; padding: 14px 12px; }
    .cookie-category-icon { width: 36px; height: 36px; }
    .cookie-category.is-required { grid-template-columns: 36px minmax(0,1fr); }
    .cookie-always-on { grid-column: 2; justify-self: start; }
    .cookie-card-actions { align-items: stretch; flex-direction: column; padding: 14px 16px max(14px,env(safe-area-inset-bottom)); }
    .cookie-card-actions>div { display: grid; grid-template-columns: 1fr; }
    .cookie-action { min-height: 46px; }
    .a11y-trigger,.back-to-top { width: 52px !important; height: 52px !important; bottom: max(14px,env(safe-area-inset-bottom)); }
    .a11y-trigger { left: max(14px,env(safe-area-inset-left)) !important; }
    .back-to-top { right: max(14px,env(safe-area-inset-right)); }
    .newsletter-dialog-intro { padding: 30px 22px 22px; }
    .newsletter-dialog-intro h2 { padding-right: 34px; font-size: 28px; }
    .newsletter-dialog-form { padding: 24px 20px 28px; }
    .newsletter-dialog-form .compact-captcha-main { grid-template-columns: 1fr; }
    .newsletter-dialog-form .compact-captcha-image img { width: 100%; max-width: none; height: 100%; object-fit: contain; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner,.cookie-action,.back-to-top,.cookie-switch>span,.cookie-switch>span::after { scroll-behavior: auto; transition: none; }
}
