/* Legal Pages Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    color: #e2e8f0;
}

/* Legal Content */
.legal-content {
    padding: 4rem 0;
    background: #f8fafc;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.legal-section {
    padding: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: #2d3748;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.legal-section h3 {
    color: #4a5568;
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.legal-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.legal-section li strong {
    color: #2d3748;
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.contact-info p:first-child {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.125rem;
}

/* Table of Contents */
.table-of-contents {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.table-of-contents h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Highlighted Text */
.highlight {
    background: #fef5e7;
    padding: 1rem;
    border-left: 4px solid #f6ad55;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.highlight p {
    margin: 0;
    color: #744210;
    font-weight: 500;
}

/* Warning Box */
.warning-box {
    background: #fed7d7;
    padding: 1.5rem;
    border-left: 4px solid #e53e3e;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.warning-box h4 {
    color: #742a2a;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.warning-box p {
    color: #742a2a;
    margin: 0;
}

/* Info Box */
.info-box {
    background: #ebf8ff;
    padding: 1.5rem;
    border-left: 4px solid #3182ce;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.info-box h4 {
    color: #2a4365;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.info-box p {
    color: #2a4365;
    margin: 0;
}

/* Success Box */
.success-box {
    background: #f0fff4;
    padding: 1.5rem;
    border-left: 4px solid #38a169;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.success-box h4 {
    color: #22543d;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.success-box p {
    color: #22543d;
    margin: 0;
}

/* Definition Lists */
.definition-list {
    margin: 1.5rem 0;
}

.definition-list dt {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.definition-list dd {
    color: #4a5568;
    margin-left: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Code Blocks */
.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Links */
.legal-section a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #5a67d8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Print Styles */
@media print {
    .legal-document {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .legal-section {
        padding: 2rem;
        page-break-inside: avoid;
    }
    
    .back-to-top {
        display: none;
    }
    
    .page-header {
        background: none;
        color: #2d3748;
        border-bottom: 2px solid #e2e8f0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .legal-section {
        padding: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.375rem;
    }
    
    .legal-section ul {
        padding-left: 1.5rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
}

/* Animation for sections - handled by JavaScript */

/* Sticky Navigation for long documents */
.legal-nav {
    position: sticky;
    top: 100px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.legal-nav h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav li {
    margin-bottom: 0.5rem;
}

.legal-nav a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-nav a:hover,
.legal-nav a.active {
    color: #667eea;
    font-weight: 500;
}
