/* ============================================
   Legal Pages (Terms, Privacy, Refund)
   ============================================ */

.legal-page {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 100px;
    background: var(--bg-primary);
    overflow: hidden;
}

.legal-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 40% at 50% 20%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 40% at 50% 20%, black, transparent);
    pointer-events: none;
}

.legal-page::after {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 64px;
}

.legal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.legal-updated {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.legal-content {
    display: flex;
    flex-direction: column;
}

.legal-section {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.legal-section h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    padding-left: 14px;
    position: relative;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.legal-section p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

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

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.legal-section a:hover {
    color: var(--accent-light);
}

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

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-section li {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 9px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.7;
}

/* ============================================
   Status Page
   ============================================ */

.status-page .legal-container {
    max-width: 1120px;
}

.status-header {
    margin-bottom: 36px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 20px 24px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 29, 53, 0.96), rgba(12, 21, 37, 0.94));
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.status-row__product {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.status-row__thumb {
    width: 88px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.status-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(0) brightness(1.18) contrast(1.05);
}

.status-row__fallback {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-row__name {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.status-row__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.status-row__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.status-row__caret {
    color: var(--accent-light);
    font-size: 24px;
    line-height: 1;
    transform: translateY(-1px);
}

.status-row__states {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.status-chip::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.status-chip--safe {
    color: #22c55e;
}

.status-chip--updating {
    color: #f97316;
}

.status-chip--danger,
.status-chip--down {
    color: #ef4444;
}

@media (max-width: 768px) {
    .legal-page { padding: 120px 0 60px; }
    .legal-container { padding: 0 20px; }
    .legal-header { margin-bottom: 40px; }
    .legal-section { padding: 20px 0; }
    .legal-section h2 { font-size: 16px; }
    .status-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .status-row__product {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
    }

    .status-row__thumb {
        width: 72px;
        height: 48px;
    }

    .status-row__name {
        font-size: 22px;
    }

    .status-row__states {
        gap: 10px;
    }
}
