/* Legal Pages - Neo-Scribe Style */

/* ===== COLOR PALETTE ===== */
:root {
    --neo-obsidian: #0a0a0a;
    --neo-obsidian-light: #111111;
    --neo-obsidian-lighter: #1a1a1a;
    --neo-amber: #FFBF00;
    --neo-amber-dim: rgba(255, 191, 0, 0.6);
    --neo-amber-glow: rgba(255, 191, 0, 0.15);
    --neo-amber-subtle: rgba(255, 191, 0, 0.08);
    --neo-text: #c4c4c4;
    --neo-text-dim: #666666;
    --neo-text-bright: #e8e8e8;
    --neo-border: rgba(255, 191, 0, 0.2);
    --neo-border-dim: rgba(255, 191, 0, 0.1);
}

/* ===== LEGAL PAGE LAYOUT ===== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    min-height: calc(100vh - 80px);
}

/* ===== LEGAL HEADER ===== */
.legal-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--neo-border-dim);
    position: relative;
}

.legal-tag {
    display: inline-block;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--neo-text-dim);
    margin-bottom: 12px;
    opacity: 0.7;
}

.legal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--neo-text-bright);
    letter-spacing: 0.02em;
    margin: 0 0 12px 0;
}

.legal-updated {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--neo-text-dim);
    letter-spacing: 0.5px;
    margin: 0;
}

.beta-notice {
    position: absolute;
    top: 0;
    right: 0;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    background: rgba(255, 191, 0, 0.1);
    border: 1px solid var(--neo-amber-dim);
    color: var(--neo-amber);
}

/* ===== LEGAL CONTENT ===== */
.legal-content {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neo-text);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neo-amber);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--neo-border-dim);
}

.legal-section h3 {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neo-text-bright);
    letter-spacing: 0.08em;
    margin: 24px 0 12px 0;
}

.legal-section p {
    margin: 0 0 16px 0;
}

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

.legal-section li {
    margin-bottom: 8px;
    color: var(--neo-text);
}

.legal-section li::marker {
    color: var(--neo-amber-dim);
}

.legal-section strong {
    color: var(--neo-text-bright);
}

/* ===== CONTACT EMAIL ===== */
.contact-email {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 1rem;
    padding: 16px 20px;
    background: var(--neo-obsidian-lighter);
    border: 1px solid var(--neo-border-dim);
    margin: 16px 0;
    position: relative;
}

.contact-email::before,
.contact-email::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--neo-amber-dim);
    border-style: solid;
    border-width: 0;
}

.contact-email::before {
    top: 0;
    left: 0;
    border-top-width: 1px;
    border-left-width: 1px;
}

.contact-email::after {
    bottom: 0;
    right: 0;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

.contact-email a {
    color: var(--neo-amber);
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* ===== RETENTION TABLE ===== */
.retention-table {
    margin: 20px 0;
    border: 1px solid var(--neo-border-dim);
}

.retention-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--neo-border-dim);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.85rem;
}

.retention-row:last-child {
    border-bottom: none;
}

.retention-type {
    color: var(--neo-text);
}

.retention-period {
    color: var(--neo-amber);
}

.retention-note {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--neo-text-dim);
    padding: 12px 16px;
    background: var(--neo-obsidian-lighter);
    border-left: 2px solid var(--neo-amber-dim);
    margin: 16px 0;
}

/* ===== WARNING BOX ===== */
.warning-box {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--neo-text-bright);
    padding: 16px 20px;
    background: rgba(255, 191, 0, 0.05);
    border: 1px solid var(--neo-amber-dim);
    margin: 16px 0;
    position: relative;
}

.warning-box::before {
    content: '⚠';
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--neo-obsidian-light);
    padding: 0 8px;
    color: var(--neo-amber);
    font-size: 0.9rem;
}

/* ===== LEGAL FOOTER ===== */
.legal-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--neo-border-dim);
    text-align: center;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.75rem;
}

.legal-footer a {
    color: var(--neo-text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-footer a:hover {
    color: var(--neo-amber);
}

.legal-footer .footer-sep {
    color: var(--neo-text-dim);
    opacity: 0.4;
    margin: 0 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .legal-page {
        padding: 24px 16px 60px;
    }
    
    .legal-title {
        font-size: 1.8rem;
    }
    
    .legal-content {
        font-size: 1rem;
    }
    
    .beta-notice {
        position: static;
        display: inline-block;
        margin-top: 12px;
    }
    
    .retention-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .retention-period {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 16px 16px 48px;
    }
    
    .legal-title {
        font-size: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 0.75rem;
    }
    
    .legal-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .contact-email {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}
