/* ═══════════════════════════════════════════════════════ */
/* StudioRam — Legal Pages & Beta Signup Styles           */
/* ═══════════════════════════════════════════════════════ */

/* ═══════════ Legal Page Layout ═══════════ */
.legal-page {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
}

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

.legal-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 12px;
}

.legal-date {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.legal-content {
    max-width: 740px;
    margin: 0 auto;
}

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

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cyan);
    margin-top: 20px;
    margin-bottom: 10px;
}

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

.legal-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.legal-section ul li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
}

.legal-section a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

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

/* ═══════════ Beta Signup Form ═══════════ */
.beta-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(255, 183, 77, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.beta-form {
    max-width: 640px;
    margin: 0 auto 24px;
}

.beta-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.beta-input-group {
    flex: 1;
    min-width: 180px;
}

.beta-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.beta-input:focus {
    border-color: var(--cyan-dim);
    box-shadow: 0 0 0 3px var(--cyan-subtle);
}

.beta-input::placeholder {
    color: var(--text-muted);
}

.beta-submit {
    flex-shrink: 0;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 160px;
}

.beta-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.beta-legal {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.beta-legal a {
    color: var(--cyan-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.beta-legal a:hover {
    color: var(--cyan);
}

/* Beta Success State */
.beta-success {
    text-align: center;
    padding: 32px 24px;
    animation: fadeInUp 0.5s var(--ease-out);
}

.beta-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.beta-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.beta-success p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Beta Counter */
.beta-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.beta-counter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ═══════════ Responsive ═══════════ */
@media (max-width: 768px) {
    .beta-form-row {
        flex-direction: column;
    }

    .beta-input-group {
        min-width: auto;
    }

    .beta-submit {
        width: 100%;
    }

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

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