/* Legal Pages Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #fafbfc;
}

/* Navigation */
.legal-nav {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #667eea;
}

.nav-logo i {
    font-size: 24px;
    color: #667eea;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
    background: #f7fafc;
}

.nav-link.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Main Container */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.legal-content {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

/* Header */
.legal-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid #f1f5f9;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.legal-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.5;
}

.legal-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 0.875rem;
}

.meta-item i {
    color: #667eea;
}

/* Table of Contents */
.toc-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 48px;
    border: 1px solid #e2e8f0;
}

.toc-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2d3748;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    display: block;
    padding: 8px 12px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.toc-list a:hover {
    color: #667eea;
    background: white;
    transform: translateX(4px);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 24px 0 16px 0;
}

.legal-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4a5568;
    margin: 16px 0 8px 0;
}

.legal-section p {
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-section li strong {
    color: #2d3748;
    font-weight: 600;
}

/* Definitions List */
.definitions-list {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.definition-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.definition-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 8px 0;
    font-family: 'Fira Code', monospace;
}

.definition-item p {
    margin: 0;
    color: #4a5568;
    font-size: 0.875rem;
}

/* Fee Table */
.fee-table {
    margin: 24px 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.fee-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.fee-table th {
    background: #f7fafc;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

.fee-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #4a5568;
}

.fee-table tr:last-child td {
    border-bottom: none;
}

.fee-table tr:hover {
    background: #f8fafc;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.contact-card {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-icon i {
    font-size: 20px;
    color: white;
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.contact-card p {
    color: #4a5568;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 8px;
    margin: 24px 0;
}

.info-box i {
    color: #319795;
    margin-top: 2px;
    font-size: 16px;
}

.info-box div {
    color: #234e52;
}

.info-box strong {
    color: #234e52;
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #fef5e7;
    border: 1px solid #f6e05e;
    border-radius: 8px;
    margin: 24px 0;
}

.warning-box i {
    color: #d69e2e;
    margin-top: 2px;
    font-size: 16px;
}

.warning-box div {
    color: #744210;
}

.warning-box strong {
    color: #744210;
}

/* DPO Section */
.dpo-section {
    background:#764ba2;
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
    border: 1px solid #e2e8f0;
}

.dpo-section h3 {
    color: #2d3748;
    margin-bottom: 12px;
}

.dpo-section p {
    margin-bottom: 16px;
}

.dpo-section ul {
    margin: 0;
    padding-left: 20px;
}

/* Footer Navigation */
.legal-footer-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f1f5f9;
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-nav-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.footer-nav-link i {
    font-size: 14px;
}

/* Footer */
.legal-footer {
    background: #1a1a1a;
    color: white;
    padding: 24px 0;
    margin-top: 48px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-logo span {
        display: none;
    }
    
    .legal-container {
        padding: 24px 16px;
    }
    
    .legal-content {
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-subtitle {
        font-size: 1.125rem;
    }
    
    .legal-meta {
        flex-direction: column;
        gap: 16px;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-nav-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 24px 16px;
    }
    
    .legal-title {
        font-size: 1.75rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .fee-table {
        font-size: 0.8rem;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 12px 8px;
    }
    
    .contact-card {
        padding: 20px 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Print Styles */
@media print {
    .legal-nav,
    .legal-footer-nav,
    .legal-footer {
        display: none;
    }
    
    .legal-container {
        max-width: none;
        padding: 0;
    }
    
    .legal-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .legal-title {
        color: #000;
    }
    
    .legal-section h2 {
        color: #000;
        border-bottom: 1px solid #000;
    }
    
    .toc-section {
        background: none;
        border: 1px solid #ffffff;
    }
    
    .contact-card,
    .info-box,
    .warning-box {
        background: none;
        border: 1px solid #000;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    body {
        background: #ffffff;
        color: #e2e8f0;
    }
    
    .legal-nav {
        background: #2d3748;
        border-bottom-color: #4a5568;
    }
    
    .legal-content {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .legal-title {
        color: #f7fafc;
    }
    
    .legal-section h2 {
        color: #f7fafc;
        border-bottom-color: #4a5568;
    }
    
    .legal-section h3 {
        color: #e2e8f0;
    }
    
    .legal-section p,
    .legal-section li {
        color: #cbd5e0;
    }
    
    .toc-section {
        background: #1a1a1a;
        border-color: #4a5568;
    }
    
    .contact-card {
        background: #1a1a1a;
        border-color: #4a5568;
    }
    
    .fee-table th {
        background: #1a1a1a;
    }
    
    .fee-table {
        border-color: #4a5568;
    }
}
