﻿

/* ===== Legal Popup (LP) ===== */
:root {
    --lp-bg: #ffffff;
    --lp-fg: #0f172a;
    --lp-muted: #475569;
    --lp-border: #e2e8f0;
    --lp-accent: #0ea5e9; /* cyan-500 */
    --lp-accent-ink: #075985;
    --lp-banner-bg: #f0f9ff; /* sky-50 */
    --lp-shadow: 0 10px 30px rgba(2, 8, 23, .25);
}

@media (prefers-color-scheme: dark) {
    :root {
        --lp-bg: #0b1220;
        --lp-fg: #e2e8f0;
        --lp-muted: #94a3b8;
        --lp-border: #1f2937;
        --lp-accent: #22d3ee; /* cyan-400 */
        --lp-accent-ink: #164e63;
        --lp-banner-bg: #0b2430;
        --lp-shadow: 0 12px 36px rgba(0,0,0,.6);
    }
}

.lp-overlay {
    position: fixed;
    inset: 0;
    display: none; /* toggled via .show */
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    z-index: 9999;
    padding: 20px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--lp-fg);
}

    .lp-overlay.show {
        display: flex;
    }

.lp-card {
    position: relative;
    width: min(880px, 100%);
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    box-shadow: var(--lp-shadow);
    overflow: hidden;
    animation: lpIn .22s ease-out both;
}

.lp-x {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--lp-muted);
    font-size: 24px;
    cursor: pointer;
    border-radius: 10px;
}

    .lp-x:hover {
        background: rgba(0,0,0,.06);
    }

@media (prefers-color-scheme: dark) {
    .lp-x:hover {
        background: rgba(255,255,255,.06);
    }
}

.lp-header {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 18px 16px 12px 16px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-ink));
    color: white;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(14,165,233,.35);
}

.lp-header h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 800;
}

.lp-sub {
    margin: 4px 0 0;
    color: var(--lp-muted);
    font-size: .92rem;
    font-weight: 600;
}

.lp-body {
    padding: 16px;
}

.lp-banner {
    background: var(--lp-banner-bg);
    border: 1px dashed var(--lp-border);
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.55;
    margin-bottom: 14px;
    font-weight: 600;
}

.lp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 720px) {
    .lp-grid {
        grid-template-columns: 1fr;
    }
}

.lp-block {
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 12px 14px;
}

.lp-block-title {
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--lp-accent);
}

.lp-steps, .lp-points {
    margin: 0;
    padding-left: 1.1em;
    line-height: 1.6;
}

    .lp-steps li {
        margin: 4px 0;
    }

        .lp-steps li::marker {
            color: var(--lp-accent);
            font-weight: 700;
        }

    .lp-points li {
        margin: 6px 0;
    }

.lp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--lp-border);
}

.lp-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform .08s ease, opacity .12s ease, box-shadow .12s ease;
}

.lp-btn-dark {
    background: var(--lp-fg);
    color: var(--lp-bg);
    box-shadow: 0 4px 12px rgba(2,8,23,.15);
}

    .lp-btn-dark:hover {
        transform: translateY(-1px);
    }

    .lp-btn-dark:active {
        transform: translateY(0);
        opacity: .92;
    }

.lp-timer {
    position: relative;
    height: 32px;
    min-width: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--lp-muted);
    padding: 0 8px;
}

.lp-timer-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(14,165,233,.25), rgba(14,165,233,.05));
    transform-origin: left center;
}

.lp-timer-text {
    position: relative;
    z-index: 1;
}

@keyframes lpIn {
    from {
        transform: translateY(8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes lpShrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}





/* Container styling */
.license-line {
    margin-top: .25rem;
    font-weight: 800;
    letter-spacing: .3px;
    display: inline-block;
    position: relative;
    color: #0f172a; /* fallback text color */
    text-shadow: 0 0 8px rgba(255, 215, 0, .15);
}

/* Glitter text effect */
.license-glitter {
    /* Gradient that animates across the text */
    background: linear-gradient(120deg, #ffd700 10%, #fff4b1 25%, #ffb700 40%, #ffd700 55%, #fffdf0 70%, #ffb700 85%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
    position: relative;
    padding-right: 18px; /* space for spark */
}

    /* Soft outer glow that pulses subtly */
    .license-glitter::before {
        content: "";
        position: absolute;
        inset: -2px -4px -2px -4px;
        border-radius: 8px;
        pointer-events: none;
        box-shadow: 0 0 12px rgba(255, 215, 0, .25), 0 0 24px rgba(255, 215, 0, .18);
        animation: glow 2.25s ease-in-out infinite;
    }

    /* Tiny sparkling star sweeping across */
    .license-glitter::after {
        content: "✦";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(0, -50%) scale(1);
        font-size: 14px;
        color: #fff6b7;
        text-shadow: 0 0 6px #ffd700, 0 0 12px rgba(255, 215, 0, .8);
        animation: twinkle 1.4s ease-in-out infinite;
    }

/* Keyframes */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: .75;
        filter: drop-shadow(0 0 0 rgba(255,215,0,0));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(255,215,0,.35));
    }
}

@keyframes twinkle {
    0%, 100% {
        transform: translate(0, -50%) scale(1);
        opacity: .9;
    }

    50% {
        transform: translate(2px, -50%) scale(1.25);
        opacity: 1;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .license-glitter,
    .license-glitter::before,
    .license-glitter::after {
        animation: none !important;
    }

    .license-glitter {
        background: linear-gradient(120deg, #ffd700, #fff4b1, #ffb700);
        background-size: 100% 100%;
    }
}
.content-header .col {
    text-align: center;
}

.license-line {
    display: block;
    margin-inline: auto;
}





