/* Terms Page Specific Styles */

.terms-hero {
    padding: 120px 0 80px;
    background: var(--gradient);
    text-align: center;
}

.terms-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.terms-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.terms-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Terms Content */
.terms-content {
    padding: 80px 0;
    background: var(--dark-bg);
}

.terms-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.terms-navigation {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.terms-navigation h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

.terms-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-nav-list li {
    margin-bottom: 0.75rem;
}

.terms-nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.terms-nav-list a:hover,
.terms-nav-list a.active {
    color: var(--main-color);
    border-left-color: var(--main-color);
}

.terms-text {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--main-color);
    padding-top: 1rem;
}

.terms-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.terms-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.terms-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.terms-section ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
}

.terms-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design for Terms Page */
@media (max-width: 1024px) {
    .terms-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terms-navigation {
        position: static;
        order: 2;
    }
    
    .terms-text {
        order: 1;
    }
}

@media (max-width: 768px) {
    .terms-hero-title {
        font-size: 2.5rem;
    }
    
    .terms-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .terms-text {
        padding: 2rem;
    }
    
    .terms-section h2 {
        font-size: 1.8rem;
    }
    
    .terms-navigation {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        padding: 100px 0 60px;
    }
    
    .terms-hero-title {
        font-size: 2rem;
    }
    
    .terms-hero-subtitle {
        font-size: 1rem;
    }
    
    .terms-content {
        padding: 60px 0;
    }
    
    .terms-text {
        padding: 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .terms-section h3 {
        font-size: 1.3rem;
    }
    
    .terms-navigation {
        padding: 1rem;
    }
}

/* Smooth scrolling for navigation links */
html {
    scroll-behavior: smooth;
}

/* Active section highlighting */
.terms-section:target {
    background: rgba(249, 89, 89, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin: -1rem -1rem 2rem -1rem;
}

/* Print styles */
@media print {
    .terms-navigation {
        display: none;
    }
    
    .terms-wrapper {
        grid-template-columns: 1fr;
    }
    
    .terms-text {
        background: white;
        color: black;
    }
    
    .terms-section h2 {
        color: black;
    }
}
