/* Terms of Service Page Styles */
.terms-main {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.terms-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.terms-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

.terms-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.terms-nav {
    position: sticky;
    top: 140px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.terms-nav h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.terms-nav ul {
    list-style: none;
}

.terms-nav ul li {
    margin-bottom: 8px;
}

.terms-nav ul li a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

.terms-nav ul li a:hover {
    background: #f1f5f9;
    color: #667eea;
    transform: translateX(5px);
}

.terms-sections {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.terms-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    scroll-margin-top: 120px;
}

.terms-section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d3748;
    margin: 30px 0 15px 0;
}

.terms-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

.terms-section ul {
    margin: 20px 0;
    padding-left: 20px;
}

.terms-section ul li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 8px;
    position: relative;
}

.terms-section ul li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: -20px;
    top: 0;
}

.contact-info {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info strong {
    color: #1a202c;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .terms-nav {
        position: static;
        order: 2;
        margin-top: 40px;
    }
    
    .terms-sections {
        order: 1;
    }
}

@media (max-width: 768px) {
    .terms-main {
        padding: 100px 0 60px;
    }
    
    .terms-header h1 {
        font-size: 2.5rem;
    }
    
    .terms-sections {
        padding: 30px 25px;
    }
    
    .terms-section h2 {
        font-size: 1.8rem;
    }
    
    .terms-section h3 {
        font-size: 1.4rem;
    }
    
    .terms-section p,
    .terms-section ul li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-sections {
        padding: 20px 15px;
    }
    
    .terms-section h2 {
        font-size: 1.6rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .terms-nav {
        padding: 20px;
    }
}

/* Animation Effects */
.terms-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.terms-section:nth-child(1) { animation-delay: 0.1s; }
.terms-section:nth-child(2) { animation-delay: 0.2s; }
.terms-section:nth-child(3) { animation-delay: 0.3s; }
.terms-section:nth-child(4) { animation-delay: 0.4s; }
.terms-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Focus States */
.terms-nav ul li a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .terms-nav {
        display: none;
    }
    
    .terms-content {
        grid-template-columns: 1fr;
    }
    
    .terms-section {
        break-inside: avoid;
    }
}
