/* ===================================================================
   Consent Gate — blocking Terms/Privacy acceptance after login.
   Sits above everything (header, modals, toasts) so it can't be
   worked around; the only exits are Agree or Log out.
   =================================================================== */

.cg {
    position: fixed;
    inset: 0;
    z-index: var(--z-popup, 3000);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 15, 35, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 240ms ease;
}
.cg.is-open { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cg { transition: none; } }

.cg-card {
    width: 100%;
    max-width: 360px;
    background: var(--paper, #F4F1EA);
    color: var(--ink, #1a1a1a);
    border-radius: 18px;
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(191, 149, 63, 0.4);
}
.cg-logo { width: 56px; height: 56px; margin-bottom: 12px; }
.cg-title {
    font-family: var(--font-display, 'Archivo Black', sans-serif);
    font-size: 20px;
    margin: 0 0 8px;
}
.cg-body {
    font-family: var(--font-ui, 'Figtree', sans-serif);
    font-size: 14px;
    line-height: 1.5;
    color: rgba(26, 26, 26, 0.75);
    margin: 0 0 16px;
}
.cg-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 13.5px;
}
.cg-links a {
    color: #b38728;
    text-decoration: underline;
    font-weight: 600;
}
.cg-agree {
    appearance: none;
    width: 100%;
    border: none;
    border-radius: 100px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba 40%, #b38728 60%, #fbf5b7);
    color: #1a1a1a;
    font-family: var(--font-ui, 'Figtree', sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.cg-agree:disabled { opacity: 0.7; cursor: default; }
.cg-agree:active:not(:disabled) { transform: translateY(1px); }
.cg-logout {
    appearance: none;
    margin-top: 10px;
    background: transparent;
    border: none;
    color: rgba(26, 26, 26, 0.5);
    font-family: var(--font-ui, 'Figtree', sans-serif);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
