/* =========================================
   READY PEP GO — COMPLIANCE STYLES
   Gate modal, compliance bar, footer disclaimer,
   checkout agreement, legal pages
   ========================================= */

/* =========================================
   SITEWIDE COMPLIANCE BAR (above header)
   ========================================= */
.rpg-compliance-bar {
    background: #0a0f1a;
    border-bottom: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
}

.rpg-compliance-bar__inner {
    overflow: hidden;
}

.rpg-compliance-bar__items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.625rem 1.25rem;
    padding: 0 1rem;
}

.rpg-compliance-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.rpg-compliance-bar__item svg {
    color: #ef4444;
    flex-shrink: 0;
}

.rpg-compliance-bar__dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    .rpg-compliance-bar__dot { display: none; }
    .rpg-compliance-bar__items { gap: 0.375rem 1rem; }
    .rpg-compliance-bar__item { font-size: 0.625rem; }
}

/* =========================================
   COMBINED VERIFICATION GATE
   Single gate — age 21+ AND researcher.
   ========================================= */
.rpg-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.97);
    backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.rpg-gate-overlay.rpg-gate--hidden {
    display: none !important;
}

.rpg-gate-modal {
    background: #0f1e35;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 580px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
}

@media (min-width: 640px) {
    .rpg-gate-modal { padding: 3rem 2.5rem; }
}

/* Combined 21+ badge + warning icon row */
.rpg-gate-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rpg-gate-age-badge {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(0,200,255,0.12), rgba(30,111,217,0.12));
    border: 2px solid rgba(0,200,255,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rpg-gate-age-badge span {
    font-size: 1.25rem;
    font-weight: 900;
    color: #00C8FF;
    line-height: 1;
}

.rpg-gate-warning-icon {
    width: 56px; height: 56px;
    background: rgba(239,68,68,0.1);
    border: 1.5px solid rgba(239,68,68,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
}

.rpg-gate-logo {
    margin-bottom: 1.25rem;
}

.rpg-gate-logo .logo-text {
    justify-content: center;
    align-items: center;
}

.rpg-gate-logo .logo-name {
    font-size: 1.25rem;
}

.rpg-gate-warning-icon {
    width: 72px;
    height: 72px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ef4444;
}

#rpg-gate-title {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

#rpg-gate-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.rpg-gate-checklist {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rpg-gate-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.rpg-gate-check-item svg {
    color: #00C8FF;
    flex-shrink: 0;
    margin-top: 2px;
}

.rpg-gate-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rpg-gate-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 420px;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #00C8FF, #1E6FD9);
    color: #050a14;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,200,255,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rpg-gate-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,200,255,0.5);
}

.rpg-gate-exit-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rpg-gate-exit-link:hover {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.rpg-gate-legal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.5;
    margin: 0;
}

.rpg-gate-legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rpg-gate-legal a:hover {
    color: rgba(0, 200, 255, 0.7);
}

/* =========================================
   FOOTER DISCLAIMER — UPGRADED
   ========================================= */
.footer-disclaimer--full {
    background: #070d18;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
    padding: 2rem 0 1.5rem;
}

.footer-disclaimer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
    .footer-disclaimer-grid {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
}

.footer-disclaimer-block--primary .footer-disclaimer-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ef4444;
    margin-bottom: 0.75rem;
}

.footer-disclaimer-block--primary p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.75;
    margin: 0;
}

.footer-disclaimer-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: flex-start;
}

@media (min-width: 900px) {
    .footer-disclaimer-badges {
        flex-direction: column;
        flex-wrap: nowrap;
        min-width: 200px;
    }
}

.footer-compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.footer-compliance-badge svg {
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.footer-disclaimer-legal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.7;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
}

/* =========================================
   WOOCOMMERCE CHECKOUT AGREEMENT
   ========================================= */
.rpg-checkout-agreement {
    background: rgba(239, 68, 68, 0.04);
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.rpg-checkout-agreement__inner {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.rpg-checkout-agreement__icon {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
}

.rpg-checkout-agreement__content strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.rpg-checkout-agreement__content p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Checkbox styling */
.rpg-researcher-checkbox {
    margin: 0 !important;
}

.rpg-researcher-checkbox label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem !important;
    color: var(--color-text) !important;
    line-height: 1.6;
    cursor: pointer;
    font-weight: 500 !important;
}

.rpg-researcher-checkbox label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--color-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.rpg-researcher-checkbox label strong {
    font-weight: 800;
    color: var(--color-navy);
}

.rpg-researcher-checkbox label a {
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Error state */
.rpg-researcher-checkbox.woocommerce-invalid label input[type="checkbox"] {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* =========================================
   SHOP & PRODUCT PAGE DISCLAIMER
   (Upgraded — more prominent)
   ========================================= */
.research-disclaimer {
    background: #0a0f1a;
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
    padding: 0.875rem 0;
}

.research-disclaimer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.research-disclaimer strong {
    color: rgba(239, 68, 68, 0.8);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.research-disclaimer p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================
   LEGAL CONTENT (TOS / PRIVACY)
   Shared styles already in page-terms.php inline
   but ensuring consistent body padding
   ========================================= */
body.page-template-page-terms .site-content,
body.page-template-page-privacy .site-content {
    background: var(--color-white);
}
