/* ---------- Cookie consent banner ---------- */
/* Uses the site's design tokens (defined in styles.css / legal.css). */

.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--soft-black, #1A1A1A);
    border-top: 1px solid rgba(200, 169, 110, 0.35);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
}

.consent-banner[hidden] { display: none; }

.consent-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.consent-text {
    margin: 0;
    flex: 1 1 320px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--off-white, #F5F5F5);
}

.consent-text a {
    color: var(--warm-gold, #C8A96E);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-actions {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

.consent-btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    padding: 12px 22px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.consent-decline {
    background: transparent;
    color: var(--off-white, #F5F5F5);
    border-color: rgba(245, 245, 245, 0.35);
}

.consent-decline:hover {
    border-color: var(--off-white, #F5F5F5);
}

.consent-accept {
    background: var(--warm-gold, #C8A96E);
    color: var(--true-black, #0D0D0D);
}

.consent-accept:hover {
    background: #d8bd88;
}

.consent-btn:focus-visible {
    outline: 2px solid var(--warm-gold, #C8A96E);
    outline-offset: 2px;
}

/* Footer "Cookie settings" trigger — matches the sibling footer links
   (.footer-links a: 12px, uppercase, 0.14em tracking, mid-grey).
   line-height must be inherited too: a button defaults to `normal`, which
   makes its box shorter than the links above it and throws the even 8px
   footer rhythm off. */
.cookie-settings {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 12px;
    line-height: inherit;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid-grey);
    cursor: pointer;
    text-align: inherit;
    transition: color 0.2s ease;
}
.cookie-settings:hover { color: var(--off-white); }

/* Mobile: keep the banner to a slim strip instead of half the screen. */
@media (max-width: 640px) {
    .consent-banner {
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        max-height: 55vh;
        overflow-y: auto;
    }
    .consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .consent-text {
        flex: 1 1 auto;
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    .consent-actions { justify-content: flex-end; }
    .consent-btn {
        font-size: 0.8125rem;
        padding: 10px 18px;
    }
}
