/* ===== NOVA BRAND SYSTEM ===== */
:root {
    --bg: #05070d;
    --text: #f7f9fc;
    --muted: #9aa7b9;
    --muted2: #68758a;
    --purple: #9a67ff;
    --green: #43e6a4;
    --line: rgba(255, 255, 255, .09);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 67% 8%, rgba(113, 66, 255, .16), transparent 25%),
        radial-gradient(circle at 94% 35%, rgba(31, 151, 255, .09), transparent 23%),
        var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(circle at 72% 20%, black, transparent 68%);
    z-index: -1;
}
/* ===== WOW LAYER ===== */
.nova-wow-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.nova-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .22;
    animation: novaFloat 12s ease-in-out infinite;
}
.nova-orb.a {
    width: 320px;
    height: 320px;
    background: #7b4dff;
    left: -120px;
    top: 14vh;
}
.nova-orb.b {
    width: 260px;
    height: 260px;
    background: #159eff;
    right: -90px;
    top: 42vh;
    animation-delay: -4s;
}
.nova-orb.c {
    width: 210px;
    height: 210px;
    background: #c85cff;
    left: 45%;
    bottom: -90px;
    animation-delay: -7s;
}
@keyframes novaFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(30px, -35px, 0) scale(1.12);
    }
}

/* ===== CARD ===== */
.card {
    width: min(100%, 740px);
    background: linear-gradient(155deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 40%),
        linear-gradient(145deg, #101b2c, #070e1a);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
    padding: 32px 40px 28px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transition: transform .24s ease, box-shadow .24s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 34px 100px rgba(0, 0, 0, .6);
}

/* ===== HEADER ===== */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex: none;
}
.card-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-icon {
    width: 40px;
    height: 40px;
    flex: none;
    position: relative;
}
.brand-icon svg {
    width: 40px;
    height: 40px;
}
.brand-icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    right: -1px;
    top: -1px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 0 12px #fff, 0 0 24px #9a67ff;
    animation: novaSpark 2.4s ease-in-out infinite;
}
@keyframes novaSpark {
    0%,
    100% {
        transform: rotate(45deg) scale(.8);
        opacity: .65;
    }
    50% {
        transform: rotate(45deg) scale(1.15);
        opacity: 1;
    }
}
.card-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
    background: linear-gradient(105deg, #fff 8%, #c7a9ff 72%, #9b7cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: #8996a8;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    font-family: inherit;
    flex: none;
}
.close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

/* ===== SCROLLABLE CONTENT ===== */
.scroll-content {
    overflow-y: auto;
    padding-right: 8px;
    flex: 1;
}
.scroll-content::-webkit-scrollbar {
    width: 4px;
}
.scroll-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}
.scroll-content::-webkit-scrollbar-thumb {
    background: rgba(154, 103, 255, 0.4);
    border-radius: 8px;
}
.scroll-content::-webkit-scrollbar-thumb:hover {
    background: rgba(154, 103, 255, 0.6);
}

/* ===== TYPOGRAPHY ===== */
.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #dce4ef;
    margin: 20px 0 10px;
}
.legal-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #dce4ef;
    margin: 18px 0 8px;
}
.legal-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #c8d2e0;
    margin-bottom: 12px;
}
.legal-content a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}
.legal-content a:hover {
    text-decoration: underline;
}
.legal-content ul {
    padding-left: 22px;
    margin-bottom: 14px;
}
.legal-content ul li {
    font-size: 14px;
    line-height: 1.7;
    color: #c8d2e0;
    margin-bottom: 4px;
}
.legal-content .summary-box {
    background: rgba(67, 230, 164, .06);
    border: 1px solid rgba(67, 230, 164, .15);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 14px 0 18px;
}
.legal-content .summary-box strong {
    color: var(--green);
    display: block;
    margin-bottom: 6px;
}
.legal-content .summary-box p {
    margin-bottom: 0;
}

/* ===== FOOTER META ===== */
.card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--muted2);
    flex: none;
}
.card-footer a {
    color: var(--muted2);
    text-decoration: none;
    transition: color .2s;
}
.card-footer a:hover {
    color: var(--text);
}
.card-footer .meta-links {
    display: flex;
    gap: 18px;
}

@media (max-width: 700px) {
    .card {
        padding: 24px 20px 20px;
        border-radius: 20px;
        max-height: 95vh;
    }
    .card-header h1 {
        font-size: 18px;
    }
    .legal-content h2 {
        font-size: 18px;
    }
    .legal-content h3 {
        font-size: 15px;
    }
    .legal-content p,
    .legal-content ul li {
        font-size: 13px;
    }
    .card-footer {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .close-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}
@media (max-width: 520px) {
    .card {
        padding: 18px 14px 16px;
        border-radius: 18px;
    }
}