/* Terms of Use Page Styles */

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.last-updated {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.last-updated p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.last-updated strong {
    color: var(--text-color);
}

/* Terms Content */
.terms-content {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

.terms-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
}

.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.terms-section p {
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: justify;
}

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

/* Lists */
.terms-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-list li {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.terms-list li:last-child {
    margin-bottom: 0;
}

/* Contact Information */
.contact-info {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    text-align: left;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Acknowledgment Section */
.acknowledgment {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    border: 1px solid var(--border-color);
}

.effective-notice {
    background-color: var(--accent-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    font-size: 0.95rem;
    border-left: 4px solid var(--accent-color);
}

/* Quick Navigation */
.terms-navigation {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terms-navigation h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.nav-list li {
    background-color: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-list li:hover {
    background-color: var(--accent-light);
}

.nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .nav-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .last-updated {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .terms-content {
        margin-bottom: 2rem;
    }
    
    .terms-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.375rem;
    }
    
    .terms-section h3 {
        font-size: 1.125rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .terms-section p {
        text-align: left;
    }
    
    .terms-list {
        padding-left: 1.25rem;
    }
    
    .contact-info {
        padding: 1.25rem;
    }
    
    .terms-navigation {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .terms-section {
        padding: 1.25rem;
    }
    
    .terms-section h2 {
        font-size: 1.25rem;
    }
    
    .terms-section h3 {
        font-size: 1rem;
    }
    
    .terms-navigation {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .terms-navigation {
        display: none;
    }
    
    .page-header {
        background-color: transparent;
        border: 1px solid #000;
    }
    
    .terms-section {
        background-color: transparent;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    .terms-section h2 {
        color: #000;
        border-bottom-color: #000;
    }
    
    .contact-info {
        background-color: transparent;
        border: 1px solid #ccc;
    }
    
    .effective-notice {
        background-color: transparent;
        border: 1px solid #000;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .terms-section {
        border: 2px solid var(--text-color);
    }
    
    .terms-section h2 {
        border-bottom-width: 3px;
    }
    
    .nav-list li {
        border: 1px solid var(--text-color);
    }
}
