/* MorpheusFlow — Legal pages styling */

/* Override body for legal pages — scrollable, not overflow:hidden */
body.legal-page {
    overflow: auto;
    min-height: 100vh;
}

/* Content column */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px 80px;
    line-height: 1.7;
}

/* Header */
.legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 13px;
    color: #64b5f6;
    font-weight: 400;
}

/* Sections */
.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    margin-top: 16px;
    margin-bottom: 8px;
}

.legal-section p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 12px 24px;
    font-size: 14px;
    color: #bbb;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-section li strong {
    color: #e0e0e0;
}

.legal-section a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.15s;
}

.legal-section a:hover {
    color: #90caf9;
    text-decoration: underline;
}

/* Address blocks */
.legal-address {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.8;
}

.legal-address p {
    margin-bottom: 0;
    color: #ccc;
}

.legal-address a {
    color: #64b5f6;
    text-decoration: none;
}

.legal-address a:hover {
    text-decoration: underline;
}

/* Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.legal-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.legal-table td {
    padding: 10px 12px;
    color: #bbb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: top;
}

.legal-table code {
    background: rgba(100, 181, 246, 0.1);
    color: #90caf9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
}

.legal-table a {
    color: #64b5f6;
    text-decoration: none;
}

.legal-table a:hover {
    text-decoration: underline;
}

/* Callout box */
.legal-callout {
    background: rgba(255, 167, 38, 0.06);
    border: 1px solid rgba(255, 167, 38, 0.2);
    border-left: 3px solid #ffa726;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 12px 0;
}

.legal-callout p {
    color: #ddd;
    margin-bottom: 0;
}

.legal-callout strong {
    color: #ffa726;
}

/* Keyboard keys */
.legal-section kbd {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    color: #ccc;
}

/* Footer bar — fixed bottom on legal pages */
.legal-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 20px;
    text-align: center;
    font-size: 11px;
}

.legal-footer-bar a {
    color: #666;
    text-decoration: none;
    transition: color 0.15s;
    padding: 0 4px;
}

.legal-footer-bar a:hover {
    color: #64b5f6;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.1);
    margin: 0 6px;
}

/* App footer bar — for main app pages (non-legal) */
.app-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 6px 20px;
    text-align: center;
    font-size: 10px;
    pointer-events: auto;
}

.app-footer-bar a {
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
    padding: 0 3px;
}

.app-footer-bar a:hover {
    color: #64b5f6;
}

/* Responsive */
@media (max-width: 600px) {
    .legal-content {
        padding: 70px 16px 70px;
    }

    .legal-header h1 {
        font-size: 22px;
    }

    .legal-table th,
    .legal-table td {
        padding: 8px;
        font-size: 12px;
    }
}

/* Print */
@media print {
    body.legal-page {
        background: #fff;
        color: #000;
    }

    #nav-bar,
    .legal-footer-bar,
    .app-footer-bar {
        display: none !important;
    }

    .legal-content {
        padding: 0;
        max-width: 100%;
    }

    .legal-header h1 { color: #000; }
    .legal-updated { color: #333; }
    .legal-section h2 { color: #222; border-bottom-color: #ccc; }
    .legal-section h3 { color: #333; }
    .legal-section p,
    .legal-section li { color: #333; }
    .legal-section a { color: #1565c0; }
    .legal-address { background: #f8f8f8; border-color: #ddd; }
    .legal-address p { color: #333; }
    .legal-table th { color: #333; border-bottom-color: #999; background: #f5f5f5; }
    .legal-table td { color: #333; border-bottom-color: #ddd; }
    .legal-callout { background: #fff8e1; border-color: #ffa726; }
    .legal-callout p { color: #333; }
}
