/* Subpages: legal, compare, 404 */
body.page-sub {
    min-height: 100vh;
}

/* —— Legal —— */
.legal-wrapper {
    width: 90%;
    max-width: 880px;
    margin: 40px auto 100px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
    color: var(--heading);
}

.legal-header .last-updated {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 48px);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    color: var(--heading);
    font-size: 1.35rem;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-content p { margin-bottom: 16px; }
.legal-content ul { margin: 0 0 20px; padding-left: 1.25rem; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--heading); }

.legal-note {
    background: var(--bg-muted);
    border-left: 3px solid var(--accent);
    padding: 16px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.legal-note.warning {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

.legal-note.warning strong { color: var(--danger); }

.legal-content a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover { text-decoration: underline; }

/* —— Compare MEE6 —— */
.compare-hero {
    text-align: center;
    margin: 48px auto 40px;
    width: 90%;
    max-width: 720px;
}

.compare-hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: 16px;
    line-height: 1.08;
    color: var(--heading);
}

.title-gradient {
    background: linear-gradient(90deg, var(--heading) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compare-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0 auto;
    line-height: 1.6;
}

.compare-table-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 80px;
    overflow-x: auto;
}

.vs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.vs-table th,
.vs-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--table-row-border);
    line-height: 1.55;
    vertical-align: top;
}

.vs-table th {
    background: var(--table-head-bg);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vs-table td { font-size: 0.9rem; color: var(--text-secondary); }

.col-feature {
    width: 14%;
    font-weight: 600;
    color: var(--heading);
    border-right: 1px solid var(--border);
}

.col-mee6 {
    width: 20%;
    border-right: 1px solid var(--border);
}

.col-orriva {
    width: 26%;
    background: var(--accent-muted);
    color: var(--text);
    font-weight: 500;
    border-right: 1px solid var(--border);
}

.col-advantage { width: 40%; font-size: 0.875rem; }

.highlight-text { color: var(--accent); }

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}

.compare-cta {
    width: 90%;
    max-width: 640px;
    margin: 0 auto 100px;
    text-align: center;
    padding: 40px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.compare-cta h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.compare-cta p {
    color: var(--text-secondary);
    margin: 0 0 24px;
    font-size: 1rem;
}

.compare-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* —— 404 —— */
.error-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 560px;
    padding: 48px 0 80px;
}

.error-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 6vw, 48px);
    text-align: center;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.error-code {
    font-size: clamp(4rem, 15vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: var(--heading);
    margin-bottom: 8px;
    letter-spacing: -0.05em;
}

.error-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 0 0 12px;
    color: var(--heading);
    font-weight: 700;
}

.error-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 28px;
    line-height: 1.6;
}

.terminal-display {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 28px;
}

.terminal-line { margin-bottom: 6px; }
.t-blue { color: var(--accent-blue); }
.t-red { color: var(--danger); }
.t-green { color: var(--success); }
.t-white { color: var(--heading); }
.t-dim { color: var(--text-tertiary); }

@media (max-width: 1000px) {
    .vs-table th,
    .vs-table td { padding: 12px 14px; font-size: 0.82rem; }
    .legal-content { padding: 24px; }
}
