* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.legalPage {
    background:
        radial-gradient(1000px 500px at 20% -10%, rgba(29, 185, 84, 0.12), transparent 55%),
        var(--bg-primary);
}


.switchPageWrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 14px 70px;

    display: flex;
    align-items: flex-start;
    gap: 16px;
}


.switchHeader {
    width: 240px;
    position: sticky;
    top: 86px;
    align-self: flex-start;
}


.switchBar {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 12px;
    border-radius: 18px;

    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.40);
}


.switchBtn {
    width: 100%;
    text-align: left;

    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.20);
    color: rgba(255, 255, 255, 0.75);

    font-weight: 850;
    border-radius: 14px;
    padding: 12px 12px;

    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
    position: relative;
    overflow: hidden;
}

.switchBtn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(240px 80px at 0% 50%, rgba(29, 185, 84, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.switchBtn:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 185, 84, 0.22);
}

.switchBtn:hover::before {
    opacity: 1;
}

.switchBtn.active {
    background: rgba(29, 185, 84, 0.14);
    border-color: rgba(29, 185, 84, 0.35);
    color: var(--accent);
}


.mainSection {
    flex: 1;
    min-width: 0;
}


.switchPanel {
    display: none;

    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.62), rgba(10, 10, 10, 0.40));
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.02);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.switchPanel.active {
    display: block;
    animation: panelIn 180ms ease;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.switchPanel h2 {
    margin: 0 0 10px;
    font-family: Montserrat, sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.switchPanel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.75;
    font-size: 0.98rem;
}

/* Terms & Conditions Styling */
.switchPanel h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.switchPanel .terms-updated {
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.switchPanel h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 800;
}

.switchPanel h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.switchPanel p.muted {
    margin-bottom: 12px;
    line-height: 1.6;
}

.switchPanel ul.muted {
    margin-left: 24px;
    margin-bottom: 20px;
    line-height: 1.7;
    list-style-type: disc;
}

.switchPanel ul.muted li {
    margin-bottom: 8px;
}

.switchPanel ul.muted li strong,
.switchPanel p.muted strong {
    color: rgba(255, 255, 255, 0.85);
}

.switchPanel .section-subheading {
    margin-bottom: 8px;
    margin-top: 16px;
}

.switchPanel a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.switchPanel a:hover {
    opacity: 0.8;
    text-decoration: underline;
}


@media (max-width: 820px) {
    .switchPageWrap {
        flex-direction: column;
        gap: 12px;
    }

    .switchHeader {
        width: 100%;
        position: static;
    }

    .switchBar {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        padding: 10px;
    }

    .switchBtn {
        white-space: nowrap;
        min-width: max-content;
    }
}