/* Terms and Conditions Page Styles */
.terms-conditions-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    min-height: 100vh;
}

.terms-content {
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.terms-content:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.terms-content h2 {
    color: #1a365d;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2b6cb0;
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content h3 {
    color: #2d3748;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.terms-content h3::before {
    content: "›";
    color: #2b6cb0;
    font-weight: bold;
    margin-right: 0.5rem;
}

.terms-content p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.terms-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terms-content li {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    position: relative;
}

.terms-content li::marker {
    color: #2b6cb0;
    font-weight: bold;
}

.terms-content li strong {
    color: #1a365d;
    font-weight: 600;
}

.contact-info {
    border: 1px solid #dee2e6;
    background: #f7fafc !important;
}

.contact-info h5 {
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info h5 i {
    color: #2b6cb0;
}

.contact-info p {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Section numbering enhancement */
.terms-content h2:nth-of-type(1)::before { content: "1. "; }
.terms-content h2:nth-of-type(2)::before { content: "2. "; }
.terms-content h2:nth-of-type(3)::before { content: "3. "; }
.terms-content h2:nth-of-type(4)::before { content: "4. "; }
.terms-content h2:nth-of-type(5)::before { content: "5. "; }
.terms-content h2:nth-of-type(6)::before { content: "6. "; }
.terms-content h2:nth-of-type(7)::before { content: "7. "; }
.terms-content h2:nth-of-type(8)::before { content: "8. "; }
.terms-content h2:nth-of-type(9)::before { content: "9. "; }
.terms-content h2:nth-of-type(10)::before { content: "10. "; }
.terms-content h2:nth-of-type(11)::before { content: "11. "; }
.terms-content h2:nth-of-type(12)::before { content: "12. "; }
.terms-content h2:nth-of-type(13)::before { content: "13. "; }
.terms-content h2:nth-of-type(14)::before { content: "14. "; }
.terms-content h2:nth-of-type(15)::before { content: "15. "; }
.terms-content h2:nth-of-type(16)::before { content: "16. "; }
.terms-content h2:nth-of-type(17)::before { content: "17. "; }

.terms-content h2::before {
    color: #2b6cb0;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Highlighted important sections */
.terms-content h2:contains("Acceptable Use Policy"),
.terms-content h2:contains("Limitation of Liability"),
.terms-content h2:contains("Termination") {
    background: linear-gradient(90deg, #fef2f2 0%, #fee2e2 100%);
    padding: 0.75rem 1rem;
    border-left: 4px solid #dc2626;
    border-bottom: none;
    border-radius: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-conditions-section {
        padding: 40px 0;
    }
    
    .terms-content {
        padding: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .contact-info .row > div {
        margin-bottom: 1rem;
    }
    
    .terms-content ul {
        padding-left: 1rem;
    }
}

/* Print styles */
@media print {
    .terms-conditions-section {
        background: white;
        padding: 20px 0;
    }
    
    .terms-content {
        box-shadow: none !important;
        border: none;
    }
    
    .btn {
        display: none;
    }
    
    .terms-content h2 {
        page-break-after: avoid;
    }
    
    .terms-content h3 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
.terms-content h2:focus,
.terms-content h3:focus {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}

/* Smooth scrolling for internal links */
html {
    scroll-behavior: smooth;
}

/* Table of contents (if added later) */
.terms-toc {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.terms-toc h4 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.terms-toc ul {
    list-style: none;
    padding-left: 0;
}

.terms-toc li {
    margin-bottom: 0.5rem;
}

.terms-toc a {
    color: #2b6cb0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-toc a:hover {
    color: #1e4a72;
    text-decoration: underline;
}

/* Special styling for definitions */
.terms-content strong {
    background: linear-gradient(120deg, #e6f3ff 0%, #cce7ff 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    font-weight: 600;
}

/* Highlight important warnings */
.terms-content p:contains("prohibited"),
.terms-content p:contains("violation"),
.terms-content p:contains("termination") {
    background: #fef7f7;
    border-left: 3px solid #f56565;
    padding: 1rem;
    border-radius: 0.25rem;
    margin: 1rem 0;
}