/* terms.css — استایل اختصاصی صفحه قوانین */

.terms-page {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef0f7 100%);
    min-height: 80vh;
}

.terms-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #6c5ce7 100%);
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.25);
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.terms-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.terms-hero-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.terms-hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.6rem 0;
    position: relative;
    z-index: 1;
}

.terms-hero-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
}

.terms-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.terms-meta-divider { opacity: 0.5; }

.terms-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.term-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-right: 4px solid #6c5ce7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.term-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.15);
}

.term-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.term-color-1 { border-right-color: #6c5ce7; }
.term-color-1 .term-num { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.term-color-2 { border-right-color: #00b894; }
.term-color-2 .term-num { background: linear-gradient(135deg, #00b894, #55efc4); }
.term-color-3 { border-right-color: #0984e3; }
.term-color-3 .term-num { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.term-color-4 { border-right-color: #e17055; }
.term-color-4 .term-num { background: linear-gradient(135deg, #e17055, #fab1a0); }
.term-color-5 { border-right-color: #fdcb6e; }
.term-color-5 .term-num { background: linear-gradient(135deg, #fdcb6e, #ffeaa7); color: #4a2c00; }
.term-color-6 { border-right-color: #e84393; }
.term-color-6 .term-num { background: linear-gradient(135deg, #e84393, #fd79a8); }
.term-color-7 { border-right-color: #00cec9; }
.term-color-7 .term-num { background: linear-gradient(135deg, #00cec9, #81ecec); }
.term-color-8 { border-right-color: #d63031; }
.term-color-8 .term-num { background: linear-gradient(135deg, #d63031, #ff7675); }
.term-color-9 { border-right-color: #6c5ce7; }
.term-color-9 .term-num { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }

.term-body { min-width: 0; }

.term-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c2a4a;
    margin: 0 0 0.6rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.term-body p {
    font-size: 0.92rem;
    line-height: 1.9;
    color: #4a5568;
    margin: 0 0 0.8rem 0;
}

.term-body p:last-child { margin-bottom: 0; }

.term-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.term-list li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #4a5568;
    padding-right: 1.5rem;
    position: relative;
}

.term-list li::before {
    content: "•";
    position: absolute;
    right: 0.3rem;
    top: 0;
    color: #6c5ce7;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.5;
}

.terms-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.terms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.terms-btn-outline {
    background: #fff;
    color: #6c5ce7;
    border: 2px solid #6c5ce7;
}

.terms-btn-outline:hover {
    background: #6c5ce7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.terms-btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
}

.terms-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.5);
}

@media (max-width: 768px) {
    .terms-page { padding: 1rem 0 2rem; }
    .terms-hero { padding: 2rem 1.2rem; margin-bottom: 2rem; }
    .terms-hero-icon { width: 64px; height: 64px; }
    .terms-hero-title { font-size: 1.4rem; }
    .terms-hero-sub { font-size: 0.85rem; }
    .terms-hero-meta { font-size: 0.78rem; }
    .term-card {
        grid-template-columns: 40px 1fr;
        gap: 0.8rem;
        padding: 1.2rem;
        border-radius: 14px;
    }
    .term-num { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 10px; }
    .term-title { font-size: 1rem; }
    .term-body p { font-size: 0.88rem; line-height: 1.8; }
    .term-list li { font-size: 0.85rem; }
    .terms-btn { padding: 0.65rem 1.6rem; font-size: 0.88rem; }
}

@media (max-width: 480px) {
    .terms-hero { padding: 1.5rem 1rem; border-radius: 18px; }
    .terms-hero-icon { width: 56px; height: 56px; }
    .terms-hero-title { font-size: 1.2rem; }
    .term-card {
        grid-template-columns: 36px 1fr;
        padding: 1rem;
        gap: 0.7rem;
    }
    .term-num { width: 36px; height: 36px; font-size: 1rem; border-radius: 9px; }
    .term-title { font-size: 0.95rem; padding-bottom: 0.4rem; }
    .term-body p { font-size: 0.82rem; line-height: 1.7; }
    .term-list li { font-size: 0.8rem; padding-right: 1.2rem; }
    .terms-footer { gap: 0.7rem; margin-top: 2rem; }
    .terms-btn { padding: 0.6rem 1.4rem; font-size: 0.85rem; width: 100%; max-width: 280px; }
}
