*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #0f0f1a;
    margin: 0;
    padding: 0;
}

/* ── COLOUR TOKENS ── */
:root {
    --purple: #43e97b;
    --purple-light: #63e990;
    --purple-dark: #37ba63;
    --green: #10b981;
    --green-light: #34d399;
    --amber: #f59e0b;
    --bg: #ffffff;
    --surface: #f8f7ff;
    --border: #e5e4f0;
    --text: #0f0f1a;
    --muted: #6b7280;
}

/* ── GRADIENT HELPERS ── */
.grad-text {
    background: linear-gradient(135deg, var(--purple), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-bg {
    background: linear-gradient(135deg, var(--purple), var(--purple-light), var(--green));
}

.grad-card {
    background: linear-gradient(135deg, #faf5ff, #f0fdf4);
}

/* ── NAVBAR ── */
#mainNav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}

#mainNav.scrolled {
    box-shadow: 0 4px 24px rgba(124, 58, 237, .08);
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--purple);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo .logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.nav-link-item {
    color: var(--muted) !important;
    font-weight: 500;
    font-size: .925rem;
    transition: color .2s;
    text-decoration: none;
    padding: .4rem .75rem;
}

.nav-link-item:hover {
    color: var(--purple) !important;
}

.btn-primary-g {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: white;
    border: none;
    border-radius: 100px;
    padding: .5rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn-primary-g:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, .35);
    color: white;
}

.btn-outline-g {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
    border-radius: 100px;
    padding: .48rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn-outline-g:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-1px);
}

/* ── LEGAL PAGE STYLES ── */
.legal-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%);
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    pointer-events: none;
}

.legal-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.legal-hero p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Legal Content Container */
.legal-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Tabs Sidebar */
.legal-tabs {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, .08);
    overflow: hidden;
    border: 1px solid var(--border);
    height: fit-content;
}

.legal-tab {
    display: block;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: var(--muted);
    transition: all .3s ease;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.legal-tab:last-child {
    border-bottom: none;
}

.legal-tab:hover {
    background: #faf9ff;
    color: var(--purple);
    padding-left: 2rem;
}

.legal-tab.active {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: white;
    font-weight: 700;
}

.legal-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
}

/* Content Area */
.legal-content-area {
    flex: 1;
    min-width: 0;
}

.legal-content {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(124, 58, 237, .08);
    border: 1px solid var(--border);
    animation: fadeInUp 0.4s ease-in-out;
}

.legal-content.active {
    display: block;
}

.legal-content h2 {
    color: var(--purple);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-content h2::before {
    content: '';
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-content h2.privacy::before {
    content: '🔒';
}

.legal-content h2.terms::before {
    content: '📋';
}

.legal-content h2.refund::before {
    content: '💰';
}

.legal-content h2.ownership::before {
    content: '🏢';
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.legal-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
}

.legal-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--purple);
    font-weight: 700;
    font-size: 1.2rem;
}

.legal-content strong {
    color: var(--purple);
    font-weight: 700;
}

/* Footer */
footer {
    background: #0f0f1a;
    color: #d1d5db;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-desc {
    font-size: .9rem;
    color: #9ca3af;
    max-width: 260px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1f2937;
    color: #9ca3af;
    text-decoration: none;
    transition: all .2s;
    margin-right: .4rem;
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--purple);
    color: white;
}

.footer-col h5 {
    color: white;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #9ca3af;
    font-size: .9rem;
    text-decoration: none;
    margin-bottom: .55rem;
    transition: color .2s;
}

.footer-col a:hover {
    color: white;
}

.footer-divider {
    border-color: #1f2937;
    margin: 2.5rem 0 1.5rem;
}

.footer-copy {
    font-size: .8rem;
    color: #6b7280;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .legal-container {
        flex-direction: column;
    }

    .legal-tabs {
        flex: 1;
        position: relative;
        top: 0;
        display: flex;
        overflow-x: auto;
        border-radius: 20px 20px 0 0;
    }

    .legal-tab {
        flex: 1;
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }

    .legal-tab:last-child {
        border-right: none;
    }

    .legal-content {
        padding: 2rem;
    }
}

@media (max-width: 575px) {
    .legal-hero {
        padding: 3rem 1rem 2rem;
    }

    .legal-content {
        padding: 1.5rem;
    }
}

/* Hamburger toggler cleanup */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    outline: none;
}