/* E-Academy Web Platform Styles - Sync with app_ui_core */

:root {
    --primary: #0C6EEE;
    --primary-dark: #0A5CC6;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FFFFFF;
    --bg: #FAFAFA;
    --bg-dark: #121212;
    --surface: #FFFFFF;
    --error: #D32F2F;
    --success: #4CAF50;
    --warning: #FFC107;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg);
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Tab Navigation */
.nav-tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-tab {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    background: rgba(12, 110, 238, 0.08);
    color: var(--primary);
}

.nav-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(12, 110, 238, 0.25);
}


/* Typography */
h1 {
    font-size: 32px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

h4 {
    font-size: 20px;
    font-weight: 600;
}

p {
    font-size: 16px;
    font-weight: 400;
}

.text-body2 {
    font-size: 14px;
}

/* Layout */
#layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 0 16px;
}

/* Header - Main AppBar */
.main-header {
    padding: 12px 0;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.nav-action-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s;
}

.nav-action-link:hover {
    color: var(--primary);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Search Bar */
.search-container {
    flex: 2;
    max-width: 600px;
    position: relative;
    margin: 0 40px;
}

.search-icon-svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    opacity: 0.5;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    border-radius: 24px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(12, 110, 238, 0.1);
}

.search-input::placeholder {
    color: #9e9e9e;
}

/* Nav Actions (right side) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.nav-action-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-action-link:hover {
    color: var(--primary);
}

.cta-btn {
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Sub-Navigation (below header) */
.sub-nav {
    background: #fafbfc;
    border-bottom: 1px solid #e8eaed;
    padding: 0 24px;
}

.sub-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.sub-nav-tab {
    display: inline-block;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-nav-tab:hover {
    color: var(--primary);
    background: rgba(12, 110, 238, 0.04);
}

.sub-nav-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}


/* Footer */
footer.site-footer {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid var(--border-color, #e8eaed);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-brand h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-grid h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    margin-bottom: 8px;
}

.footer-grid a:hover {
    color: var(--primary);
}

.main-footer-link a {
    font-weight: 600;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    margin-bottom: 4px;
    display: inline-block;
}

.social-icon-link {
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* App Download Badges */
.app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-badge {
    display: block;
    transition: transform 0.2s, opacity 0.2s;
}

.app-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    justify-self: end;
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.app-badges img {
    height: 38px;
    width: auto;
    display: block;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-icon {
    height: 22px;
    width: 22px;
    transition: all 0.2s ease;
    display: block;
}

.grayscale-icon {
    filter: grayscale(1) opacity(0.5);
}

.social-icon:hover {
    filter: grayscale(0) opacity(1);
    transform: translateY(-3px);
}

/* Footer Responsive */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .app-badges {
        align-items: center;
    }
}

/* Welcome Banner (minimal) */
.welcome-banner {
    padding: 48px 24px;
    background: transparent;
    text-align: center;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.welcome-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
    padding: 40px 24px;
    background: white;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 24px;
    background: #f8f9fa;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

/* Testimonials Slider */
.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonials-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 48px;
}

.testimonials-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 20px);
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.slider-arrow {
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: -24px;
}

.slider-arrow.next {
    right: -24px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #f0f0f0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light, #e3f2fd);
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 1100px) {
    .testimonials-slider {
        grid-auto-columns: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        grid-auto-columns: 100%;
    }

    .slider-arrow {
        display: none;
    }
}

/* Features */
.features {
    padding: 80px 24px;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 16px;
    background: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section (clean) */
.cta-section {
    padding: 80px 24px;
    background: #f0f4f8;
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-btn-primary {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(12, 110, 238, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 110, 238, 0.35);
}

/* Page Header (clean, no heavy colors) */
.page-header {
    padding: 60px 24px;
    background: var(--bg);
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Academies Section */
.academies-section {
    padding: 60px 24px;
    background: var(--surface);
}

.academies-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* About & Contact Hero (legacy - uses variables) */
.page-hero {
    padding: 80px 24px;
    background: var(--bg);
    text-align: center;
    color: var(--text-primary);
}


/* Contact Specific */
.contact-section {
    padding: 100px 24px;
    background: white;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    padding: 48px;
    border-radius: 24px;
    background: var(--bg);
    border: 1px solid #EEEEEE;
}

.form-title {
    font-weight: 800;
    margin-bottom: 32px;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}

.info-bullet {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(12, 110, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 4px;
    display: block;
}

.info-value {
    font-weight: 700;
    font-size: 1.125rem;
}

/* Flutter App Container */
#flutter-app-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0C6EEE;
    z-index: 1000;
}

#flutter-loading {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 32px;
    animation: pulse 2s infinite ease-in-out;
    font-size: 5rem;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.loading-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

#flutter-view {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Mission/Vision Cards for About Page */
.mission-section {
    padding: 100px 24px;
    background: white;
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.mission-card {
    padding: 48px;
    border-radius: 24px;
    background: var(--bg);
    border: 1px solid #EEEEEE;
}

.mission-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.mission-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Academy Cards */
.academies {
    padding: 100px 24px;
    background: #fdfdfd;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(12, 110, 238, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.academies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.academy-card {
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.academy-banner-container {
    width: 100%;
    height: 200px;
    background: #f0f2f5;
    overflow: hidden;
    position: relative;
}

.academy-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.academy-card:hover .academy-image-placeholder {
    transform: scale(1.1);
}

.academy-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.academy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.academy-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.academy-icon {
    font-size: 1.5rem;
}

.academy-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.academy-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.academy-foco,
.academy-ramos {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.academy-details strong {
    font-weight: 600;
}

.academy-perfil {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.perfil-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 400;
    display: block;
}

.academy-action {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}


/* Legal Pages - Using Global Layout */

/* Legal Page Layout */
.legal-page-wrapper {
    min-height: calc(100vh - 200px);
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Legal Sidebar */
.legal-sidebar {
    padding: 40px 24px 40px 0;
    position: sticky;
    top: 120px;
    /* Header (~72px) + Sub-nav (~48px) */
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.legal-sidebar h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.legal-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-sidebar li {
    margin-bottom: 8px;
}

.legal-sidebar a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
}

.legal-sidebar a:hover {
    color: var(--primary);
    background: rgba(12, 110, 238, 0.05);
}

/* Legal Main Content */
.legal-main {
    padding: 40px 0 80px 40px;
    border-left: 1px solid var(--border-color, #e8eaed);
}

.legal-header-info {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color, #e8eaed);
}

.legal-header-info h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.legal-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Legal Content */
.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-top: 24px;
    border-top: 1px solid var(--border-color, #e8eaed);
    scroll-margin-top: 160px;
    /* For anchor navigation */
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Legal Pages Responsive */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        display: none;
    }

    .legal-main {
        padding: 32px 0;
        border-left: none;
    }

    .legal-tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .legal-tab {
        white-space: nowrap;
        padding: 14px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .legal-header-info h1 {
        font-size: 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.15rem;
    }
}
/* --- Markdown Rendering Styles --- */
.markdown-body {
    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    line-height: 1.8;
}

.markdown-body h1 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--primary);
    border-bottom: 2px solid rgba(12, 110, 238, 0.1);
    padding-bottom: 12px;
}

.markdown-body h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px 0;
    color: var(--text-primary);
}

.markdown-body p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.markdown-body ul, .markdown-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.markdown-body li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.markdown-body hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin: 40px 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 20px;
    background: rgba(12, 110, 238, 0.03);
    margin-bottom: 20px;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.legal-notice {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 20px;
}
