/* Legal Pages Styles (Terms, SLA, Privacy) */

.legal-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: var(--bg-primary);
    overflow: hidden;
}

.legal-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin: 24px 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.legal-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.legal-updated {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Legal Content Section */
.legal-content {
    padding: 80px 24px 120px;
    background: var(--bg-primary);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-subheading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.legal-section a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.legal-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-list li::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
}

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

.legal-info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    padding: 24px;
    margin: 20px 0;
    border-radius: 4px;
}

.legal-info-box p {
    margin-bottom: 12px;
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

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

/* SLA Specific Styles */
.sla-tier {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin: 20px 0;
    border-radius: 4px;
}

.sla-tier .legal-subheading {
    margin-top: 0;
}

.sla-incident {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin: 16px 0;
    border-radius: 4px;
    border-left: 3px solid var(--border-color);
}

.sla-incident.critical {
    border-left-color: #ef4444;
}

.sla-incident.critical .legal-subheading {
    color: #ef4444;
}

.sla-incident.high {
    border-left-color: #f97316;
}

.sla-incident.high .legal-subheading {
    color: #f97316;
}

.sla-incident.medium {
    border-left-color: #eab308;
}

.sla-incident.medium .legal-subheading {
    color: #eab308;
}

.sla-incident.low {
    border-left-color: #22c55e;
}

.sla-incident.low .legal-subheading {
    color: #22c55e;
}

.sla-incident .legal-subheading {
    margin-top: 0;
}

.sla-incident p {
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-header {
        min-height: 40vh;
        padding: 100px 20px 60px;
    }

    .legal-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .legal-content {
        padding: 60px 20px 80px;
    }

    .legal-section {
        margin-bottom: 36px;
        padding-bottom: 36px;
    }

    .legal-heading {
        font-size: 1.125rem;
    }

    .legal-info-box,
    .sla-tier,
    .sla-incident {
        padding: 20px;
    }
}
