/* Terms and Conditions Page Styles */

/* Make Header Login Button More Visible - Enhanced Design */
.terms-hero-section ~ * .header-1 .btn-login,
.header-1 .btn-login,
.header-2 .btn-login-white {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 68, 79, 0.3) !important;
    color: #333333 !important;
    font-weight: 700 !important;
    padding: 0.875rem 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(255, 68, 79, 0.2) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.header-1 .btn-login:hover,
.header-2 .btn-login-white:hover {
    background: #ffffff !important;
    border-color: #FF444F !important;
    color: #FF444F !important;
    box-shadow: 0 6px 24px rgba(255, 68, 79, 0.35) !important;
    transform: translateY(-2px) !important;
}

[data-theme="dark"] .header-1 .btn-login,
[data-theme="dark"] .header-2 .btn-login-white {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .header-1 .btn-login:hover,
[data-theme="dark"] .header-2 .btn-login-white:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}

/* Override mobile hiding for terms page - ensure login button is visible at all breakpoints */
@media (max-width: 1024px) {
    .header-1 .btn-login,
    .header-2 .btn-login-white {
        display: inline-flex !important;
        padding: 0.75rem 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .header-1 .btn-login,
    .header-2 .btn-login-white {
        display: inline-flex !important;
        padding: 0.625rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .header-1 .btn-login,
    .header-2 .btn-login-white {
        display: inline-flex !important;
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* Hero Section */
.terms-hero-section {
    position: relative;
    padding: 140px 2rem 80px;
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    text-align: center;
    z-index: 1;
}

[data-theme="dark"] .terms-hero-section {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.15) 0%, rgba(255, 107, 53, 0.08) 100%);
}

.terms-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

[data-theme="dark"] .terms-hero-title {
    color: #ffffff;
}

.terms-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.terms-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.terms-last-updated {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Terms Content Section */
.terms-content-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.terms-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

/* Sidebar Navigation */
.terms-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    align-self: start;
}

.terms-nav {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.terms-nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.terms-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-nav-list li {
    margin-bottom: 0.75rem;
}

.terms-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.terms-nav-link:hover {
    color: var(--primary);
    background: var(--glass);
    padding-left: 1.25rem;
}

.terms-nav-link.active {
    color: var(--primary);
    background: rgba(255, 99, 71, 0.1);
    font-weight: 600;
}

/* Main Content */
.terms-main {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .terms-main {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.terms-content {
    max-width: 900px;
}

.terms-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.terms-subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.terms-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.terms-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.terms-list li {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.terms-list li::marker {
    color: var(--primary);
}

/* Definitions */
.terms-definitions {
    margin: 2rem 0;
}

.terms-definition-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.terms-definition-item strong {
    color: var(--primary);
    font-weight: 600;
}

/* Warning Box */
.terms-warning-box {
    background: rgba(255, 68, 79, 0.1);
    border: 2px solid rgba(255, 68, 79, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.terms-warning-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff4466;
    margin-bottom: 1rem;
}

.terms-warning-box .terms-text {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Contact Info */
.terms-contact-info {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.terms-contact-info p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.terms-contact-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.terms-contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-contact-info a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .terms-sidebar {
        position: relative;
        top: 0;
    }

    .terms-nav {
        position: sticky;
        top: 100px;
    }
}

@media (max-width: 768px) {
    .terms-hero-section {
        padding: 120px 1.5rem 60px;
    }

    .terms-hero-title {
        font-size: 2.5rem;
    }

    .terms-hero-subtitle {
        font-size: 1.1rem;
    }

    .terms-content-section {
        padding: 3rem 1.5rem;
    }

    .terms-main {
        padding: 2rem 1.5rem;
    }

    .terms-section-title {
        font-size: 2rem;
    }

    .terms-subsection-title {
        font-size: 1.25rem;
    }

    .terms-text,
    .terms-list li {
        font-size: 1rem;
    }

    .terms-nav {
        padding: 1.5rem;
    }

    .terms-nav-link {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .terms-hero-title {
        font-size: 2rem;
    }

    .terms-hero-subtitle {
        font-size: 1rem;
    }
}

    .terms-main {
        padding: 1.5rem 1rem;
    }

    .terms-section-title {
        font-size: 1.75rem;
    }

    .terms-warning-box {
        padding: 1.5rem;
    }
}

