.cookie-banner[hidden] { display: none; }
.cookie-banner {
    position: fixed;
    z-index: 12;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(65rem, calc(100% - 2rem));
    padding: 1rem 1.2rem;
    border: 1px solid #cddad4;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 12px 40px #101c1d29;
}
.cookie-banner h2 { font-size: 1.15rem; line-height: 1.2; }
.cookie-banner p { margin-top: 0.25rem; color: #3f5750; font-size: 0.95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; flex-shrink: 0; }
.cookie-actions .btn { min-height: 2.65rem; padding: 0.55rem 0.75rem; font-size: 0.93rem; }
.footer-nav { flex-wrap: wrap; }
.privacy-content {
    max-width: 52rem;
    padding-block: clamp(2rem, 6vw, 4rem) 4rem;
    display: grid;
    gap: 1.4rem;
    overflow-wrap: anywhere;
}
.privacy-content h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.07; letter-spacing: -0.04em; }
.privacy-content h2 { font-size: 1.42rem; line-height: 1.15; margin-bottom: 0.6rem; scroll-margin-top: 1rem; }
.privacy-content h3 { font-size: 1.04rem; margin-top: 0.85rem; }
.privacy-content p + p { margin-top: 0.65rem; }
.privacy-content header p { color: var(--muted); margin-top: 0.65rem; }
.privacy-content section { padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 0.8rem; background: white; }
.privacy-content a { color: #24554b; font-weight: 700; text-underline-offset: 0.2rem; }
.privacy-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.privacy-definitions { display: grid; gap: 0.75rem; margin-block: 0.75rem; }
.privacy-definitions dt { font-weight: 750; }
.privacy-definitions dd { margin: 0.08rem 0 0; }
.privacy-note { padding: 0.8rem 1rem; border-radius: 0.6rem; color: #624420; background: #fff0d9; }
.privacy-plain { white-space: pre-line; }
.privacy-reset { min-height: 2.75rem; margin-top: 0.8rem; }
.privacy-reset[hidden] { display: none; }
@media (max-width: 47rem) {
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
    .cookie-actions { flex-shrink: 1; }
}
@media (max-width: 26rem) {
    .cookie-banner { bottom: 0.6rem; width: calc(100% - 1.2rem); padding: 0.8rem; }
}

@media (max-width: 48rem), (pointer: coarse) {
    html, body, body.front-page { background-color: #101c1d; }
    html { overscroll-behavior-y: none; }
    body { min-height: 100dvh; }
    :where(body > main) { background-color: var(--road-paper, var(--paper)); }
    .top, .front-page .top, .footer, .front-page .footer {
        background-color: #101c1d;
        color: #f7faf8;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
    .top { padding-top: env(safe-area-inset-top, 0px); }
    .footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
    .front-page .top .brand-accent { color: #ff9b48; }
    .front-page .nav a { color: #e0e9e4; }
    .front-page .nav a:hover, .front-page .nav a[aria-current] { color: white; text-decoration-color: #ff9b48; }
    .front-page .top :focus-visible { outline-color: #ffb678; }
    .front-page .btn-header { background: #ff9b48; border-color: #ff9b48; color: #182322; }
    .front-page .btn-header:hover { background: #ffb678; }
    main .wrap {
        max-width: calc(100% - 2 * max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)));
    }
    .cookie-banner { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}
