/* Terms & Policies Page Styling */

.terms-page {
    padding: 160px 24px 80px;
    /* Space for navbar */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.terms-header {
    text-align: center;
    margin-bottom: 60px;
}

.terms-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.terms-nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.terms-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.terms-nav a.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #141e3e;
    transform: translateY(-2px);
}

.terms-section {
    display: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.terms-section.active {
    display: block;
    animation: tabFadeIn 0.4s ease forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.terms-section h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terms-section h3 {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-top: 32px;
    margin-bottom: 12px;
}

.terms-section p {
    color: #94A3B8;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .terms-section {
        padding: 24px;
    }

    .terms-section h2 {
        font-size: 1.7rem;
    }
}