@font-face {
    font-family: "Barlow";
    src: url("fonts/Barlow-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("fonts/Barlow-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: "Barlow", sans-serif;
}

a {
    color: inherit;
}

/* ── Layout ── */
.tiles {
    display: flex;
    width: 100%;
    height: 100vh;
}

.site-nav {
    position: fixed;
    right: 32px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    gap: 18px;
    transition: bottom 0.2s ease;
}

body.cookie-banner-visible .site-nav {
    bottom: 72px;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 0.2s ease;
}

.site-nav a:hover {
    opacity: 1;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.96);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    font-size: 0.92rem;
    line-height: 1.4;
}

.cookie-banner__button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    opacity: 0.82;
    cursor: pointer;
}

.cookie-banner__button:hover {
    opacity: 1;
}

/* ── Single tile ── */
.tile {
    position: relative;
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Background image layer */
.tile__background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark overlay */
.tile__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Centered logo */
.tile__logo {
    position: relative;
    z-index: 2;
    max-width: 55%;
    max-height: 30%;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ── Hover effects ── */
.tile:hover {
    flex: 1.5 1 0%;
}

.tile:hover .tile__background {
    transform: scale(1.05);
}

.tile:hover .tile__overlay {
    background: rgba(0, 0, 0, 0.15);
}

.tile:hover .tile__logo {
    opacity: 1;
    transform: scale(1.05);
}

.legal-html,
.legal-page {
    background: #000;
    color: #fff;
    overflow-y: auto;
}

.legal-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 48px 48px 112px;
}

.legal-shell--centered {
    align-items: center;
}

.legal-content {
    width: min(42vw, 640px);
    margin: 0 auto;
    line-height: 1.6;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 8px;
}

.legal-content h1,
.legal-content h2,
.legal-content p {
    text-align: center;
}

.legal-content h1 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.legal-content h2 {
    margin: 28px 0 10px;
    font-size: 1rem;
    font-weight: 600;
}

.legal-content p + p {
    margin-top: 18px;
}

.legal-note {
    margin-top: 28px;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* ── Mobile: stack vertically ── */
@media (max-width: 768px) {
    html,
    body {
        overflow: auto;
    }

    .tiles {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .tile {
        flex: none;
        height: 33.334vh;
        transition: none;
    }

    .tile:hover {
        flex: none;
    }

    .tile__logo {
        max-width: 50%;
        max-height: 40%;
    }

    .site-nav {
        right: 20px;
        bottom: 18px;
        gap: 14px;
        font-size: 0.95rem;
    }

    body.cookie-banner-visible .site-nav {
        bottom: 84px;
    }

    .cookie-banner {
        gap: 16px;
        padding: 12px 16px;
    }

    .cookie-banner p {
        font-size: 0.88rem;
    }

    .legal-shell {
        padding: 24px 20px 96px;
        align-items: flex-start;
    }

    .legal-shell--centered {
        align-items: center;
    }

    .legal-content {
        width: 100%;
        max-width: none;
        margin-top: 64px;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}
