/* ==================================================
   Terms and Conditions Page
   آریا شبرنگ
   ================================================== */

.terms-wrapper {
    direction: rtl;
    min-height: calc(100vh - 200px);
    padding: 55px 15px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.06), transparent 30%),
        #f8fafc;
    font-family: inherit;
}

.terms-container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

/* Header */

.terms-header {
    margin-bottom: 35px;
    text-align: center;
}

.terms-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 18px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
}

.terms-title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.terms-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 2;
}

/* Main Card */

.terms-card {
    padding: 40px;
    border: 1px solid #e8eef5;
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.06),
        0 2px 6px rgba(15, 23, 42, 0.03);
}

/* Sections */

.terms-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #dbe3ec;
}

.terms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.terms-num {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22);
}

.terms-section h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 750;
}

.terms-section p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 2.05;
    text-align: justify;
}

.terms-section strong {
    color: #1e40af;
    font-weight: 700;
}

/* Note */

.terms-note {
    margin-top: 16px;
    padding: 13px 18px;
    border-right: 4px solid #16a34a;
    border-radius: 9px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.9rem;
    line-height: 1.95;
}

.terms-note strong {
    color: #15803d;
}

/* Hover effect */

.terms-section {
    transition: transform 0.2s ease;
}

.terms-section:hover {
    transform: translateX(-3px);
}

/* Tablet */

@media (max-width: 768px) {
    .terms-wrapper {
        padding: 35px 12px;
    }

    .terms-card {
        padding: 26px 20px;
        border-radius: 17px;
    }

    .terms-title {
        font-size: 1.5rem;
    }

    .terms-subtitle {
        font-size: 0.9rem;
    }

    .terms-section h2 {
        font-size: 1.05rem;
    }

    .terms-section p {
        font-size: 0.9rem;
        line-height: 1.95;
        text-align: right;
    }
}

/* Mobile */

@media (max-width: 480px) {
    .terms-wrapper {
        padding: 25px 10px;
    }

    .terms-card {
        padding: 22px 15px;
    }

    .terms-title {
        font-size: 1.3rem;
    }

    .terms-badge {
        font-size: 0.78rem;
    }

    .terms-section-header {
        align-items: flex-start;
        gap: 9px;
    }

    .terms-num {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 0.8rem;
    }

    .terms-section h2 {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .terms-section p {
        font-size: 0.86rem;
    }

    .terms-note {
        padding: 11px 13px;
        font-size: 0.83rem;
    }
}
