/**
 * صفحه قوانین و شرایط — هم‌رنگ صفحه ورود
 */
.terms-page__main {
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
}

.terms-card {
    width: 100%;
    max-width: 720px;
    background: var(--login-card);
    border-radius: var(--login-radius);
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 36px);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--login-shadow);
    animation: login-slide-up 0.45s ease-out;
}

.terms-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--login-border);
}

.terms-header .logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.terms-header h1 {
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    font-weight: 800;
    color: var(--login-text);
    line-height: 1.55;
    margin-bottom: 8px;
}

.terms-intro {
    font-size: 0.9rem;
    color: var(--login-muted);
    font-weight: 600;
}

.terms-body {
    color: var(--login-text);
    font-size: 0.92rem;
    line-height: 1.85;
}

.terms-lead {
    margin-bottom: 24px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.06), rgba(14, 165, 233, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(0, 82, 255, 0.12);
    color: #334155;
}

.terms-section {
    margin-bottom: 26px;
}

.terms-section h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--login-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.terms-section p {
    margin-bottom: 10px;
    color: #334155;
}

.terms-section ul {
    margin: 8px 0 12px;
    padding-right: 1.35rem;
    list-style: disc;
    color: #475569;
}

.terms-section li {
    margin-bottom: 6px;
}

.terms-owner-info {
    list-style: none;
    padding-right: 0;
    margin: 12px 0 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--login-border);
}

.terms-owner-info li {
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--login-text);
}

.terms-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--login-border);
    text-align: center;
}

.btn-terms-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 12px;
    text-decoration: none;
    background: linear-gradient(145deg, var(--login-primary), var(--login-accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    box-shadow: 0 8px 22px rgba(0, 82, 255, 0.28);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn-terms-back:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff;
}

.terms-page .login-page__footer {
    max-width: 720px;
}

@media (max-width: 480px) {
    .terms-card {
        border-radius: 16px;
    }

    .btn-terms-back {
        width: 100%;
    }
}
