/* Terms of Service Page Styles */
.terms-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
    color: #4CAF50;
    position: relative;
    font-size: 2.5rem;
}

.page-title::after {
    content: '';
    display: block;
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    margin: 20px auto 0;
    border-radius: 2px;
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.terms-content > div {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-content > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.terms-content h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
    font-size: 1.8rem;
}

.terms-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.terms-content a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-content a:hover {
    color: #2E7D32;
    text-decoration: underline;
}

/* Lists */
.conduct-list,
.indemnification-list {
    padding-left: 20px;
    margin: 20px 0;
}

.conduct-list li,
.indemnification-list li {
    margin-bottom: 12px;
    color: #555;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.conduct-list li::before,
.indemnification-list li::before {
    content: '•';
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact Information */
.contact-info {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #4CAF50;
}

.contact-info p {
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-info a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #2E7D32;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animations */
.terms-intro {
    animation-delay: 0.1s !important;
}

.terms-acceptance {
    animation-delay: 0.2s !important;
}

.terms-license {
    animation-delay: 0.3s !important;
}

.terms-conduct {
    animation-delay: 0.4s !important;
}

.terms-ip {
    animation-delay: 0.5s !important;
}

.terms-disclaimer {
    animation-delay: 0.6s !important;
}

.terms-limitation {
    animation-delay: 0.7s !important;
}

.terms-indemnification {
    animation-delay: 0.8s !important;
}

.terms-law {
    animation-delay: 0.9s !important;
}

.terms-termination {
    animation-delay: 1.0s !important;
}

.terms-contact {
    animation-delay: 1.1s !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-section {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .terms-content > div {
        padding: 30px 20px;
    }
    
    .terms-content h2 {
        font-size: 1.6rem;
    }
    
    .terms-content p {
        font-size: 1rem;
    }
    
    .conduct-list,
    .indemnification-list {
        padding-left: 15px;
    }
    
    .conduct-list li,
    .indemnification-list li {
        padding-left: 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .terms-content > div {
        padding: 25px 15px;
    }
    
    .terms-content h2 {
        font-size: 1.4rem;
    }
    
    .terms-content p {
        font-size: 0.95rem;
    }
    
    .conduct-list li,
    .indemnification-list li {
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 15px;
    }
}

/* Accessibility Features */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        transition: none;
        animation: none;
    }
    
    [data-animate].animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .terms-section {
        background-color: white;
    }
    
    .terms-content > div {
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
    
    .header,
    .footer,
    .back-to-top {
        display: none;
    }
}

/* Focus states for accessibility */
.terms-content a:focus,
button:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .terms-content > div {
        border: 1px solid #333;
    }
    
    .terms-content h2 {
        border-bottom-color: #333;
    }
}