/* frontend/modules/legal/terms.css */
/* صفحه شرایط و قوانین — گرادیانت سبز→آبی (Step 1-1-6) */

* { box-sizing: border-box; }

body.terms-page {
    margin: 0;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: linear-gradient(180deg, #ecfeff 0%, #f0fdfa 40%, #f8fafc 100%);
    color: #1e293b;
    min-height: 100vh;
    line-height: 1.8;
}

/* ─── Header ─── */
.terms-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #ccfbf1;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.terms-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.terms-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 18px;
}
.terms-logo img { border-radius: 10px; }

.terms-nav { display: flex; gap: 18px; }
.terms-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}
.terms-nav a:hover {
    color: #10b981;
    border-bottom-color: #10b981;
}

/* ─── Main ─── */
.terms-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ═══════════════════════════════════════════════
   HERO — گرادیانت سبز → آبی آسمانی (شاد و دعوت‌کننده)
   ═══════════════════════════════════════════════ */
.terms-hero {
    text-align: center;
    padding: 44px 24px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 30%, #7dd3fc 70%, #bae6fd 100%);
    border-radius: 22px;
    margin-bottom: 40px;
    box-shadow: 0 12px 40px rgba(125, 211, 252, 0.28), 0 4px 12px rgba(16, 185, 129, 0.15);
    border: 1.5px solid #6ee7b7;
    position: relative;
    overflow: hidden;
}

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

.terms-hero h1 {
    margin: 0 0 10px 0;
    font-size: 34px;
    color: #065f46;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}
.terms-hero-sub {
    margin: 0;
    color: #0f766e;
    font-size: 13.5px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ─── Content ─── */
.terms-content {
    background: #fff;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #ccfbf1;
}

.terms-section {
    padding: 22px 0;
    border-bottom: 1px solid #f1f5f9;
}
.terms-section:last-child { border-bottom: none; }

.terms-section h2 {
    margin: 0 0 14px 0;
    font-size: 19px;
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-section p {
    margin: 0 0 12px 0;
    color: #334155;
    font-size: 15px;
    text-align: justify;
}

.terms-section ul {
    margin: 8px 0 0 0;
    padding-inline-start: 22px;
    list-style-type: none;
}
.terms-section ul li {
    position: relative;
    padding: 6px 0 6px 0;
    color: #334155;
    font-size: 14.5px;
}
.terms-section ul li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: -22px;
    color: #10b981;
    font-weight: 800;
    font-size: 14px;
}

.terms-section-contact {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 20px;
    border: 1px solid #a7f3d0;
}
.terms-section-contact h2 { color: #065f46; }
.terms-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 !important;
    margin-top: 12px;
}
.terms-contact li {
    padding: 0 !important;
    font-weight: 600;
    color: #065f46;
}
.terms-contact li::before { display: none; }

/* ─── Footer Actions ─── */
.terms-footer-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}
.terms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.terms-btn-primary {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    color: #fff;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.terms-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}
.terms-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.terms-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* ─── Footer ─── */
.terms-footer {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-size: 13px;
    border-top: 1px solid #ccfbf1;
    background: #f8fafc;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .terms-hero h1 { font-size: 24px; }
    .terms-hero { padding: 32px 18px; }
    .terms-content { padding: 24px 20px; }
    .terms-section h2 { font-size: 17px; }
    .terms-header-inner { padding: 12px 16px; }
    .terms-main { padding: 20px 16px 40px; }
}
