/* =========================================================
   COOKIE CONSENT MODAL — shared across every page/locale
   Loaded via an absolute path (/cookie-consent.css) so it works
   the same regardless of how deep the page lives. Colors are
   hardcoded (not tied to any per-page design-token scheme) since
   different sections of the site define their own, incompatible
   custom properties.
   ========================================================= */
.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cookie-consent-overlay[hidden] {
    display: none;
}

.cookie-consent {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: min(460px, calc(100vw - 40px));
    background: #0d0d0d;
    border: 1px solid #353535;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    padding: 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f5f5f5;
}

.cookie-consent-text {
    margin: 0 0 22px;
    color: #d0d0d0;
    font-size: .88rem;
    line-height: 1.6;
}
.cookie-consent-text a {
    color: #8a5cff;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.cookie-consent-actions button {
    min-height: 38px;
    padding: 0 20px;
    border-radius: 2px;
    font-family: inherit;
    font-size: .8rem;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all .2s ease;
}
.cookie-consent-actions .cookie-btn-primary {
    background: #5200ff;
    border: 1px solid #5200ff;
    color: #fff;
}
.cookie-consent-actions .cookie-btn-primary:hover {
    background: #650fff;
}
.cookie-consent-actions .cookie-btn-outline {
    background: rgba(0, 0, 0, .25);
    border: 1px solid #353535;
    color: #aaa;
}
.cookie-consent-actions .cookie-btn-outline:hover {
    color: #fff;
    border-color: #555;
    background: #111;
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 22px;
    }
    .cookie-consent-actions button {
        flex: 1;
    }
}

/* =========================================================
   BOTTOM-BAR VARIANT — used on /terms and /termos
   The legal-text pages need to stay readable behind the dialog, so this
   swaps the centered/blurred modal for a slim, non-blocking bar docked to
   the bottom of the viewport. Applied via the .cookie-consent--bar class
   (see cookie-consent.js); the overlay element is removed entirely for
   these pages, so no backdrop/blur is ever drawn.
   ========================================================= */
.cookie-consent.cookie-consent--bar {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 18px clamp(16px, 4vw, 40px);
    border: none;
    border-top: 1px solid #353535;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .45);
}
.cookie-consent.cookie-consent--bar .cookie-consent-title {
    margin: 0;
    flex: 0 0 auto;
}
.cookie-consent.cookie-consent--bar .cookie-consent-text {
    margin: 0;
    flex: 1 1 320px;
}
.cookie-consent.cookie-consent--bar .cookie-consent-actions {
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .cookie-consent.cookie-consent--bar {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
    }
    .cookie-consent.cookie-consent--bar .cookie-consent-actions button {
        flex: 1;
    }
}
