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

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

/* Grid background */
.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: 60px 60px;
    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;
}

/* Ambient glow */
.legal-page::after {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 45, 45, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

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

.legal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.legal-updated {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Content */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-section {
    padding: 32px 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: 700;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

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

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

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

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

.legal-section a:hover {
    color: #ff4444;
}

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

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

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

.legal-section li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--red-primary);
    border-radius: 50%;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 120px 0 60px;
    }

    .legal-container {
        padding: 0 20px;
    }

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

    .legal-section {
        padding: 24px 0;
    }

    .legal-section h2 {
        font-size: 19px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14px;
    }
}
