/* Terms & Privacy — typography & layout */
.terms-page {
    min-height: 100vh;
    padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91, 95, 248, 0.12), transparent 55%),
        linear-gradient(180deg, #f4f5ff 0%, #fafafa 40%, #ffffff 100%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.terms-wrap {
    width: min(92%, 720px);
    margin: 0 auto;
}

.terms-card {
    --terms-radius: 14px;
    --terms-accent: 3px;
    --terms-inner-radius: calc(var(--terms-radius) - var(--terms-accent));
    border-radius: var(--terms-radius);
    padding-top: var(--terms-accent);
    overflow: hidden;
    background: linear-gradient(90deg, #5b5ff8 0%, #7b7ffa 50%, #a5a8fc 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(91, 95, 248, 0.07);
}

.terms-card-inner {
    background: #fff;
    border-radius: var(--terms-inner-radius) var(--terms-inner-radius) var(--terms-radius) var(--terms-radius);
    box-shadow: inset 0 0 0 1px rgba(91, 95, 248, 0.08);
    padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
}

.terms-hero {
    margin-bottom: clamp(24px, 4vw, 36px);
    padding-bottom: clamp(20px, 3vw, 28px);
    border-bottom: 1px solid #eef0f6;
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b5ff8;
    background: rgba(91, 95, 248, 0.1);
    border: 1px solid rgba(91, 95, 248, 0.15);
}

.terms-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5b5ff8;
}

.terms-card h1 {
    margin: 0 0 12px;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.45rem, 3.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.terms-meta {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.01em;
}

.terms-intro {
    margin: 0 0 20px;
    padding: 20px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(91, 95, 248, 0.07) 0%, rgba(255, 255, 255, 0.6) 48%, rgba(91, 95, 248, 0.04) 100%);
}

.terms-intro-label {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b5ff8;
}

.terms-intro .terms-intro-text {
    margin: 0;
    color: #475569;
    line-height: 1.78;
    font-size: 15px;
}

.terms-card h2 {
    margin: clamp(28px, 4vw, 36px) 0 14px;
    padding-left: 14px;
    border-left: 3px solid #5b5ff8;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: #1e293b;
    scroll-margin-top: 88px;
}

.terms-card h3 {
    margin: 20px 0 10px;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    color: #334155;
}

.terms-card p,
.terms-card li {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.78;
    font-size: 15px;
}

.terms-card p strong {
    color: #1e293b;
    font-weight: 600;
}

.terms-card ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.terms-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.terms-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5b5ff8;
    opacity: 0.75;
}

.terms-card a {
    color: #5b5ff8;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(91, 95, 248, 0.35);
    transition: color 0.15s, border-color 0.15s;
}

.terms-card a:hover {
    color: #4347d4;
    border-bottom-color: #4347d4;
}

@media (max-width: 640px) {
    .terms-card {
        --terms-radius: 14px;
        border-radius: var(--terms-radius);
    }

    .terms-card-inner {
        padding: 24px 18px;
    }

    .terms-intro {
        padding: 16px 18px;
    }

    .terms-intro-text {
        font-size: 14px;
        line-height: 1.72;
    }

    .terms-card p,
    .terms-card li {
        font-size: 14px;
        line-height: 1.72;
    }
}
