/* 
 * Terms & Privacy Pages Stylesheet
 * NITS Tech Systems Learning Management System
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.legal-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legal-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-logo {
    height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.legal-site-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.legal-site-title span {
    color: #4a90e2;
}

.legal-nav-links {
    display: flex;
    gap: 25px;
}

.legal-nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.legal-nav-links a:hover {
    color: #4a90e2;
}

/* Main Content Container */
.legal-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-main-content {
    flex: 1;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Document Container */
.legal-document-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid #e0e0e0;
}

/* Document Header */
.legal-document-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4a90e2;
}

.legal-document-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.legal-document-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.legal-last-updated {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.legal-effective-date {
    color: #4a90e2;
    font-weight: 600;
}

/* Content Sections */
.legal-content-section {
    margin-bottom: 40px;
}

.legal-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.legal-section-content {
    line-height: 1.8;
}

.legal-section-content p {
    margin-bottom: 15px;
}

.legal-section-content ul,
.legal-section-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-section-content li {
    margin-bottom: 10px;
}

/* Highlight Boxes */
.legal-highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid #4a90e2;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.legal-highlight-box h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.legal-table th,
.legal-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.legal-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.legal-table tr:hover {
    background-color: #f5f7fa;
}

/* Definition Lists */
.legal-definition-list {
    margin: 20px 0;
}

.legal-definition-term {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.legal-definition-description {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #555;
}

/* Contact Information */
.legal-contact-info {
    background-color: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 6px;
    padding: 25px;
    margin: 30px 0;
}

.legal-contact-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.legal-contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.legal-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legal-contact-icon {
    color: #4a90e2;
    font-size: 18px;
    margin-top: 3px;
}

.legal-contact-text {
    flex: 1;
}

.legal-contact-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.legal-contact-value {
    color: #333;
}

/* Back to Top Button */
.legal-back-to-top {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.legal-back-to-top a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.legal-back-to-top a:hover {
    color: #357ae8;
    text-decoration: underline;
}

/* Footer */
.legal-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 5%;
    margin-top: 40px;
}

.legal-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.legal-footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.legal-footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.legal-footer-links {
    list-style: none;
}

.legal-footer-links li {
    margin-bottom: 8px;
}

.legal-footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.legal-footer-links a:hover {
    color: #4a90e2;
}

.legal-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.legal-copyright {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 10px;
}

.legal-footer-meta {
    color: #95a5a6;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .legal-document-container {
        padding: 25px;
    }
    
    .legal-document-title {
        font-size: 26px;
    }
    
    .legal-section-title {
        font-size: 20px;
    }
    
    .legal-footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-document-container {
        padding: 20px;
    }
    
    .legal-document-title {
        font-size: 22px;
    }
    
    .legal-section-title {
        font-size: 18px;
    }
    
    .legal-section-content {
        font-size: 15px;
    }
    
    .legal-table {
        font-size: 14px;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 8px 10px;
    }
}

/* Print Styles */
@media print {
    .legal-header,
    .legal-footer,
    .legal-back-to-top,
    .legal-nav-links {
        display: none;
    }
    
    .legal-document-container {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .legal-document-title {
        color: #000;
    }
    
    .legal-section-title {
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .legal-document-title {
        color: #000;
    }
    
    .legal-section-title {
        color: #000;
        border-bottom: 3px solid #000;
    }
    
    .legal-highlight-box {
        border-left: 4px solid #000;
    }
}