/* ============================================
   RESET & BASE (فقط داخل کانتینر اصلی)
   ============================================ */
#uw-terms-root * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#uw-terms-root {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a202c;
    line-height: 1.7;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

/* ============================================
   BACKGROUND BLOBS (دایره‌های تزئینی)
   ============================================ */
#uw-terms-root .uw-terms-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: uw-terms-float 14s ease-in-out infinite alternate;
    opacity: 0.4;
}

#uw-terms-root .uw-terms-blob-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.35) 0%, transparent 70%);
    animation-delay: 0s;
}
#uw-terms-root .uw-terms-blob-2 {
    width: 400px;
    height: 400px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.30) 0%, transparent 70%);
    animation-delay: 3s;
}
#uw-terms-root .uw-terms-blob-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.25) 0%, transparent 70%);
    animation-delay: 6s;
}
#uw-terms-root .uw-terms-blob-4 {
    width: 300px;
    height: 300px;
    bottom: 30%;
    right: 10%;
    background: radial-gradient(circle, rgba(221, 214, 254, 0.25) 0%, transparent 70%);
    animation-delay: 2s;
}

@keyframes uw-terms-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.1); }
}

/* ============================================
   CONTAINER (کادر اصلی با افکت شیشه‌ای)
   ============================================ */
#uw-terms-root .uw-terms-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    border-radius: 56px;
    padding: 50px 55px 30px;
    box-shadow: 
        0 30px 80px -20px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
#uw-terms-root h1,
#uw-terms-root h2,
#uw-terms-root h3,
#uw-terms-root h4 {
    font-weight: 700;
    line-height: 1.3;
}

#uw-terms-root .uw-terms-highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#uw-terms-root h1 {
    font-size: 3.2rem;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
#uw-terms-root h2 {
    font-size: 2rem;
    color: #0b1e33;
    margin-bottom: 8px;
}
#uw-terms-root h3 {
    font-size: 1.2rem;
    color: #0b1e33;
    margin-bottom: 6px;
}
#uw-terms-root h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 4px;
}
#uw-terms-root p {
    margin-bottom: 16px;
    color: #475569;
    font-size: 1.02rem;
}
#uw-terms-root a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
}
#uw-terms-root a:hover {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

/* ============================================
   BUTTONS
   ============================================ */
#uw-terms-root .uw-terms-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    letter-spacing: 0.3px;
}
#uw-terms-root .uw-terms-btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.30);
}
#uw-terms-root .uw-terms-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 44px rgba(37, 99, 235, 0.40);
    border-bottom: none;
    color: #fff;
}
#uw-terms-root .uw-terms-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}
#uw-terms-root .uw-terms-btn-outline:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    border-bottom: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
#uw-terms-root .uw-terms-hero {
    padding: 10px 0 40px;
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
}
#uw-terms-root .uw-terms-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1d4ed8;
    padding: 6px 24px;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
#uw-terms-root .uw-terms-title {
    font-size: 3.2rem;
    margin-bottom: 12px;
}
#uw-terms-root .uw-terms-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto 24px;
}
#uw-terms-root .uw-terms-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
#uw-terms-root .uw-terms-meta strong {
    color: #0b1e33;
}
#uw-terms-root .uw-terms-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
#uw-terms-root .uw-terms-content {
    max-width: 1100px;
    margin: 0 auto;
}

#uw-terms-root .uw-terms-section {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
#uw-terms-root .uw-terms-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

#uw-terms-root .uw-terms-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
#uw-terms-root .uw-terms-section-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.10);
    line-height: 1;
    flex-shrink: 0;
    min-width: 60px;
}
#uw-terms-root .uw-terms-section-title {
    font-size: 1.7rem;
    margin-bottom: 0;
}
#uw-terms-root .uw-terms-section-body {
    padding-left: 80px;
}

/* ============================================
   LISTS & DEFINITIONS
   ============================================ */
#uw-terms-root .uw-terms-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
}
#uw-terms-root .uw-terms-list li {
    padding: 6px 0 6px 28px;
    color: #475569;
    font-size: 0.98rem;
    position: relative;
}
#uw-terms-root .uw-terms-list li::before {
    content: "▸";
    color: #2563eb;
    font-weight: 700;
    position: absolute;
    left: 4px;
    top: 6px;
}

/* ============================================
   GRID 2 COL (Definitions)
   ============================================ */
#uw-terms-root .uw-terms-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 12px 0 16px;
}
#uw-terms-root .uw-terms-def-item {
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 16px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
}
#uw-terms-root .uw-terms-def-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}
#uw-terms-root .uw-terms-def-item h4 {
    font-size: 0.95rem;
    color: #0b1e33;
}
#uw-terms-root .uw-terms-def-item p {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */
#uw-terms-root .uw-terms-highlight-box {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    padding: 18px 24px;
    border-radius: 16px;
    border-left: 5px solid #2563eb;
    margin: 16px 0;
    color: #1e293b;
    font-size: 0.98rem;
}
#uw-terms-root .uw-terms-highlight-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
#uw-terms-root .uw-terms-highlight-box strong {
    display: inline-block;
    margin-right: 4px;
}

/* ============================================
   SECTION: HEADINGS INSIDE CONTENT
   ============================================ */
#uw-terms-root .uw-terms-section-body h4 {
    margin-top: 16px;
    margin-bottom: 4px;
    color: #0b1e33;
    font-size: 1.05rem;
}
#uw-terms-root .uw-terms-section-body h4:first-of-type {
    margin-top: 0;
}

/* ============================================
   CONTACT GRID
   ============================================ */
#uw-terms-root .uw-terms-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 12px;
}
#uw-terms-root .uw-terms-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 18px 22px;
    border-radius: 16px;
    transition: all 0.3s ease;
}
#uw-terms-root .uw-terms-contact-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
#uw-terms-root .uw-terms-contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
#uw-terms-root .uw-terms-contact-item strong {
    color: #0b1e33;
}
#uw-terms-root .uw-terms-contact-item a {
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
#uw-terms-root .uw-terms-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.04);
}
#uw-terms-root .uw-terms-footer-content {
    text-align: center;
}
#uw-terms-root .uw-terms-footer-brand h3 {
    font-size: 1.6rem;
    margin-bottom: 2px;
}
#uw-terms-root .uw-terms-footer-brand p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 16px;
}
#uw-terms-root .uw-terms-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-bottom: 16px;
}
#uw-terms-root .uw-terms-footer-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: none;
}
#uw-terms-root .uw-terms-footer-links a:hover {
    color: #2563eb;
}
#uw-terms-root .uw-terms-footer-copy p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* ============================================
   ANIMATION (ظهور تدریجی)
   ============================================ */
#uw-terms-root .uw-terms-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
#uw-terms-root .uw-terms-animate.uw-terms-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    #uw-terms-root .uw-terms-container { padding: 40px 32px; }
    #uw-terms-root h1 { font-size: 2.6rem; }
    #uw-terms-root h2 { font-size: 1.7rem; }
    #uw-terms-root .uw-terms-section-body { padding-left: 0; }
    #uw-terms-root .uw-terms-section-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    #uw-terms-root .uw-terms-section-number { font-size: 2rem; min-width: auto; }
    #uw-terms-root .uw-terms-grid-2col { grid-template-columns: 1fr 1fr; }
    #uw-terms-root .uw-terms-contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    #uw-terms-root { margin: 20px auto; padding: 0 12px; }
    #uw-terms-root .uw-terms-container { padding: 28px 20px; border-radius: 32px; }
    #uw-terms-root h1 { font-size: 2rem; }
    #uw-terms-root h2 { font-size: 1.4rem; }
    #uw-terms-root .uw-terms-title { font-size: 2rem; }
    #uw-terms-root .uw-terms-subtitle { font-size: 1rem; }
    #uw-terms-root .uw-terms-meta { flex-direction: column; gap: 8px; align-items: center; }
    #uw-terms-root .uw-terms-actions { flex-direction: column; align-items: center; }
    #uw-terms-root .uw-terms-btn { width: 100%; text-align: center; }
    #uw-terms-root .uw-terms-grid-2col { grid-template-columns: 1fr; }
    #uw-terms-root .uw-terms-contact-grid { grid-template-columns: 1fr; }
    #uw-terms-root .uw-terms-section { margin-bottom: 32px; padding-bottom: 28px; }
    #uw-terms-root .uw-terms-def-item { padding: 16px 18px; }
    #uw-terms-root .uw-terms-highlight-box { padding: 14px 18px; }
    #uw-terms-root .uw-terms-footer-links { gap: 8px 16px; }
}
@media (max-width: 480px) {
    #uw-terms-root .uw-terms-container { padding: 20px 16px; border-radius: 24px; }
    #uw-terms-root h1 { font-size: 1.6rem; }
    #uw-terms-root h2 { font-size: 1.2rem; }
    #uw-terms-root .uw-terms-section-number { font-size: 1.6rem; }
    #uw-terms-root .uw-terms-list li { font-size: 0.92rem; padding-left: 22px; }
    #uw-terms-root .uw-terms-contact-item { padding: 14px 16px; }
}