/* Shared by the four public pages: the cookie consent and the footer extras */

/* Cookie consent: the site's dark panel with the gold accent, the gold pill as the main button */
.cookie-consent-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background-color: rgba(10, 10, 10, 0.72);
    z-index: 10000;
    overflow-y: auto;
}
.cookie-consent-modal.show {
    display: flex;
    animation: ccFadeIn 0.3s ease forwards;
}
.cookie-content {
    width: 100%;
    max-width: 640px;
    padding: 28px 24px 24px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #c9c9c9;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
    animation: ccScaleIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes ccFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes ccScaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-content .gdpr-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}
.cookie-content .gdpr-icon {
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.12);
    color: #FFD700;
    font-size: 20px;
}
.cookie-content p {
    margin: 14px 0 10px;
    color: #c9c9c9;
}
.cookie-content a {
    color: #FFD700;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.cookie-content a:hover {
    color: #FFA500;
}
.cookie-content hr {
    margin: 18px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.cookie-buttons .btn-accept,
.cookie-buttons .btn-decline {
    flex: 1 1 140px;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
/* The plain gold stays under the gradient: hover drops the gradient, no fade from transparent (a dark frame) */
.cookie-buttons .btn-accept {
    border: none;
    background-color: #FFC700;
    background-image: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0a0a0a;
}
.cookie-buttons .btn-accept:hover {
    background-image: none;
}
.cookie-buttons .btn-decline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #e0e0e0;
}
.cookie-buttons .btn-decline:hover {
    border-color: #FFD700;
    color: #FFD700;
}
.cookie-buttons button:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 3px;
}

@media (min-width: 600px) {
    .cookie-content {
        padding: 32px 32px 28px;
        font-size: 15px;
    }
    .cookie-content .gdpr-heading {
        font-size: 22px;
    }
    .cookie-buttons .btn-accept,
    .cookie-buttons .btn-decline {
        flex: 0 0 auto;
    }
}

/* "Cookie settings" in the footers: a button that reads as a link */
.consent-open {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s;
}
.consent-open:hover {
    color: #FFD700;
}

/* On the legal pages the settings button reads like the other footer links */
footer p .consent-open {
    color: #FFD700;
}
footer p .consent-open:hover {
    text-decoration: underline;
}

/* The maker's credit under the footer line of the legal pages */
footer .credit {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
}
