/* Legal Pages - Clean Tile Design */

* {
    box-sizing: border-box;
}

.legal-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem 0;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Tile */
.legal-header {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
}

.legal-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.effective-date {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Navigation Tile */
.legal-nav {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1.5rem 0;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.nav-link:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #3b82f6;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1rem;
}

.subsection-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Text Content */
.content-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 1.5rem 0;
}

/* Lists */
.content-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.list-item {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    line-height: 1.6;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item::before {
    content: '✓';
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Nested Lists */
.nested-list {
    margin: 0.75rem 0 0 0;
    padding-left: 1rem;
}

.nested-item {
    padding: 0.5rem 0 0.5rem 2rem;
    border-bottom: 1px solid #f8fafc;
}

.nested-item::before {
    content: '•';
    background: #3b82f6;
    font-size: 1rem;
    line-height: 1;
}

/* Contact Section */
.contact-tile {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-item {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.contact-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-value {
    color: #3b82f6;
    font-weight: 500;
    word-break: break-word;
}

/* Footer Note */
.footer-note {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #92400e;
    text-align: center;
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    width: 0%;
    transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        padding: 0 0.75rem;
    }

    .legal-header {
        padding: 2rem 1.5rem;
    }

    .legal-title {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-wrapper {
        padding: 1rem 0;
    }

    .legal-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .legal-title {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .list-item {
        padding-left: 2rem;
    }

    .list-item::before {
        left: 0.5rem;
        width: 16px;
        height: 16px;
        font-size: 0.625rem;
    }
}

/* Print Styles */
@media print {
    .legal-wrapper {
        background: white;
        padding: 0;
    }

    .legal-nav,
    .scroll-progress {
        display: none;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .section-title {
        break-after: avoid;
    }
}