/*
 * Frosted glass notice: Assist24's Danish activities move to Viking Assistance A/S.
 *
 * The glass itself is pure CSS (body::after), so every page stays covered and
 * unclickable even if JavaScript fails. js/glass-notice.js adds the notice box
 * on top and makes the page behind it inert for keyboard and screen readers.
 */

/* The page behind must not scroll; the notice scrolls on its own. */
html,
body {
    overflow: hidden !important;
}

/*
 * Blur the page content itself as well. backdrop-filter alone leaks sharp text
 * through on high-density (2x/3x) screens in Chromium at large radii, so the
 * content is pre-blurred and the glass only adds the frosted finish on top.
 */
body > *:not(.glass-notice) {
    filter: blur(12px);
    -webkit-user-select: none;
    user-select: none;
}

/* Frosted glass over the whole viewport. Blocks every click on the page. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    background: rgba(244, 244, 244, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    pointer-events: auto;
}

/* Browsers without backdrop-filter: near-opaque glass so no text shows through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body::after {
        background: rgba(236, 236, 236, 0.97);
    }
}

.glass-notice {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    padding: 48px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    font-family: 'Inter', sans-serif;
}

.glass-notice:focus {
    outline: none;
}

.glass-notice__box {
    width: 100%;
    max-width: 760px;
    margin: auto;
    padding: 48px 56px;
    background: #ffffff;
    color: #161616;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.glass-notice__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0 0 36px;
    padding: 0 0 36px;
    border-bottom: 1px solid #e6e6e6;
}

.glass-notice__logos img {
    display: block;
    width: auto;
    height: 30px;
}

.glass-notice__logos img.glass-notice__logo-viking {
    height: 26px;
}

.glass-notice__divider {
    width: 1px;
    height: 40px;
    background: #d4d4d4;
}

.glass-notice__title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #161616;
}

.glass-notice__dateline {
    margin: 0 0 28px;
    font-size: 14px;
    font-weight: 700;
    color: #6b6b6b;
}

.glass-notice__box p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.65;
    color: #161616;
}

.glass-notice__about {
    margin-top: 36px;
    padding-top: 12px;
    border-top: 1px solid #e6e6e6;
}

.glass-notice__about h3 {
    margin: 24px 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #161616;
}

.glass-notice__about p {
    font-size: 15px;
    color: #3d3d3d;
}

.glass-notice__box .glass-notice__link {
    margin-bottom: 8px;
    font-weight: 700;
}

.glass-notice__box .glass-notice__link a {
    color: #DB0000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.glass-notice__box .glass-notice__link a:hover {
    color: #a80000;
}

.glass-notice__box .glass-notice__link a:focus-visible {
    outline: 2px solid #DB0000;
    outline-offset: 2px;
    border-radius: 2px;
}

.glass-notice__box > :last-child,
.glass-notice__about > :last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .glass-notice {
        padding: 16px;
    }

    .glass-notice__box {
        padding: 28px 22px;
        border-radius: 12px;
    }

    .glass-notice__logos {
        gap: 18px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .glass-notice__logos img {
        height: 22px;
    }

    .glass-notice__logos img.glass-notice__logo-viking {
        height: 19px;
    }

    .glass-notice__divider {
        height: 30px;
    }

    .glass-notice__title {
        font-size: 22px;
    }
}
