.mega-header {
    background: linear-gradient(135deg, rgba(246, 114, 128, 0.05) 0%, rgba(192, 108, 132, 0.05) 100%);
    border-bottom: 1px solid rgba(192, 108, 132, 0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.mega-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(192, 108, 132, 0.1);
}

/* Terms Page Header */
.terms-page-header {
    background: linear-gradient(135deg, rgba(246, 114, 128, 0.1) 0%, rgba(192, 108, 132, 0.1) 100%);
    padding: 120px 0 60px;
    margin-bottom: 0;
    text-align: center;
    position: relative;
}

.terms-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom right, transparent 49.5%, white 50%);
}

.terms-page-header h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.terms-page-header .lead {
    color: var(--gray-700);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Terms Wrapper */
.terms-wrapper {
    background-color: white;
    padding: 60px 0;
    min-height: calc(100vh - 300px);
}

/* Navigation */
.terms-nav {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(192, 108, 132, 0.1);
}

.terms-nav h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(192, 108, 132, 0.1);
}

.terms-nav .nav-link {
    color: var(--gray-700);
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.terms-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(246, 114, 128, 0.05);
    transform: translateX(5px);
}

.terms-nav .nav-link.active {
    background: linear-gradient(135deg, #355c7d 0%, #2c4a5e 100%);
    color: white;
    font-weight: 600;
    transform: translateX(5px);
}

/* Content Sections */
.terms-content {
    padding-left: 2rem;
}

.terms-section {
    margin-bottom: 3rem;
}

.terms-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(192, 108, 132, 0.1);
    transition: all 0.3s ease;
}

.terms-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.08);
}

.terms-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
    background: rgba(246, 114, 128, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 20px;
}

.terms-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.terms-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.terms-content-block {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.terms-content-block:last-child {
    margin-bottom: 0;
}

.terms-card h3 {
    color: var(--gray-700);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem;
}

.terms-card p {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.terms-card ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-card li {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0.5rem;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(246, 114, 128, 0.07) 0%, rgba(192, 108, 132, 0.07) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.highlight-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.highlight-box h5 i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.highlight-box p {
    margin-bottom: 0;
    line-height: 1.7;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .terms-content {
        padding-left: 0;
    }

    .terms-nav {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .terms-page-header h1 {
        font-size: 2.4rem;
    }

    .terms-card h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .terms-page-header {
        padding: 100px 0 50px;
    }

    .terms-page-header h1 {
        font-size: 2rem;
    }

    .terms-wrapper {
        padding: 40px 0;
    }

    .terms-card {
        padding: 2rem;
    }

    .terms-content-block {
        padding: 0;
    }

    .terms-card h2 {
        font-size: 1.6rem;
    }

    .terms-card h3 {
        font-size: 1.3rem;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f67280 0%, #c06c84 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(246, 114, 128, 0.4);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: auto;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(246, 114, 128, 0.5);
}

[dir="rtl"] .back-to-top-btn {
    right: auto;
    left: 30px;
}
