/*
 * Legal & Support Pages Styles
 * Ultra-Premium Design with Smooth Animations
 * ShahzebSpeaks Theme
 */

/* ========================================
   LEGAL PAGE HERO SECTION
======================================== */
.legal-page-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    padding: 140px 0 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f1a 0%, #0d1829 50%, #0a1628 100%);
}

.legal-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 110, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: floatOrb 20s ease-in-out infinite;
}

.legal-hero-orb-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -80px;
    background: linear-gradient(135deg, #006EFF 0%, rgba(0, 110, 255, 0.3) 100%);
}

.legal-hero-orb-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    background: linear-gradient(135deg, #00D4FF 0%, rgba(0, 212, 255, 0.3) 100%);
    animation-delay: -10s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(20px, 20px) scale(1.02);
    }
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.legal-hero-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 110, 255, 0.2) 0%, rgba(0, 110, 255, 0.1) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: #00D4FF;
    box-shadow: 0 0 60px rgba(0, 110, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.legal-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.legal-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.legal-hero-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.legal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.legal-meta-item i {
    color: #00D4FF;
}

/* ========================================
   LEGAL CONTENT SECTION
======================================== */
.legal-content-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0f1a 0%, #0d1829 100%);
}

.legal-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
}

.legal-sidebar-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav-list li {
    margin-bottom: 5px;
}

.legal-nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.legal-nav-list a:hover,
.legal-nav-list a.active {
    background: rgba(0, 110, 255, 0.1);
    color: #00D4FF;
}

.legal-nav-list a i {
    font-size: 0.875rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.legal-main-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 50px;
    backdrop-filter: blur(20px);
}

.legal-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-section-title i {
    color: #00D4FF;
    font-size: 1.125rem;
}

.legal-section p {
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #00D4FF;
    font-size: 0.75rem;
}

/* ========================================
   FAQ SECTION STYLES
======================================== */
.faq-categories-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0f1a 0%, #0d1829 100%);
}

.faq-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 110, 255, 0.1);
    border: 1px solid rgba(0, 110, 255, 0.3);
    border-radius: 50px;
    color: #00D4FF;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.faq-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.faq-section-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Categories Grid */
.faq-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.faq-category-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.faq-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 110, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.faq-category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 110, 255, 0.15) 0%, rgba(0, 110, 255, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    color: #00D4FF;
}

.faq-category-card h3 {
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 10px;
}

.faq-category-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.faq-category-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 15px;
    background: rgba(0, 110, 255, 0.1);
    border-radius: 20px;
    color: #00D4FF;
    font-size: 0.875rem;
}

/* FAQ Accordion */
.faq-accordion-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    border-color: rgba(0, 110, 255, 0.3);
}

.faq-accordion-item.active {
    border-color: rgba(0, 110, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 110, 255, 0.1);
}

.faq-accordion-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-accordion-question:hover {
    color: #00D4FF;
}

.faq-accordion-question i {
    color: #00D4FF;
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-question i {
    transform: rotate(180deg);
}

.faq-accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-accordion-item.active .faq-accordion-answer {
    max-height: 500px;
}

.faq-accordion-answer-content {
    padding: 0 30px 25px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

/* ========================================
   HELP CENTER STYLES
======================================== */
.help-search-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #0d1829 0%, #0a0f1a 100%);
}

.help-search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.help-search-input {
    width: 100%;
    padding: 20px 25px 20px 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.help-search-input:focus {
    outline: none;
    border-color: rgba(0, 110, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 110, 255, 0.2);
}

.help-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.help-search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #00D4FF;
    font-size: 1.125rem;
}

/* Help Categories Grid */
.help-categories-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0f1a 0%, #0d1829 100%);
}

.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.help-category-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 40px 35px;
    transition: all 0.4s ease;
    text-decoration: none;
}

.help-category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 110, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.help-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.help-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 110, 255, 0.15) 0%, rgba(0, 110, 255, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00D4FF;
}

.help-category-card h3 {
    font-size: 1.125rem;
    color: #fff;
    margin: 0;
}

.help-category-card p {
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 20px;
}

.help-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-links-list li {
    margin-bottom: 10px;
}

.help-links-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.help-links-list a:hover {
    color: #00D4FF;
    transform: translateX(5px);
}

.help-links-list a i {
    color: #00D4FF;
    font-size: 0.75rem;
}

/* Contact Support Card */
.help-support-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0d1829 0%, #0a0f1a 100%);
}

.help-support-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 110, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 110, 255, 0.3);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
}

.help-support-card h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.help-support-card p {
    color: rgba(255,255,255,0.75);
    font-size: 1.125rem;
    margin-bottom: 30px;
}

.help-support-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.help-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-support-btn.primary {
    background: linear-gradient(135deg, #006EFF 0%, #00D4FF 100%);
    color: #fff;
}

.help-support-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 110, 255, 0.4);
}

.help-support-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.help-support-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   QUICK LINKS GRID (for legal pages)
======================================== */
.legal-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.legal-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.legal-quick-link:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 110, 255, 0.4);
    background: rgba(0, 110, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.legal-quick-link i {
    color: #00D4FF;
    font-size: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    .legal-content-wrapper {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .legal-main-content {
        padding: 30px;
    }

    .help-support-card {
        padding: 40px 25px;
    }
}

@media (max-width: 768px) {
    .legal-page-hero {
        min-height: 40vh;
        padding: 120px 0 50px;
    }

    .legal-hero-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .legal-hero-meta {
        gap: 15px;
    }

    .faq-categories-grid {
        grid-template-columns: 1fr;
    }

    .faq-accordion-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-accordion-answer-content {
        padding: 0 20px 20px;
    }

    .help-categories-grid {
        grid-template-columns: 1fr;
    }

    .help-support-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 1.75rem;
    }

    .legal-main-content {
        padding: 25px 20px;
    }

    .legal-section-title {
        font-size: 1.125rem;
    }

    .faq-accordion-question {
        padding: 18px 15px;
        font-size: 0.875rem;
    }
}

/* ========================================
   COLOR VARIANTS
======================================== */
/* Help Center - Blue */
.page-help .legal-hero-icon {
    background: linear-gradient(135deg, rgba(0, 110, 255, 0.2) 0%, rgba(0, 110, 255, 0.1) 100%);
    color: #00D4FF;
}

/* FAQs - Purple */
.page-faqs .legal-hero-icon {
    background: linear-gradient(135deg, rgba(0, 110, 255, 0.2) 0%, rgba(0, 110, 255, 0.1) 100%);
    color: #00D4FF;
}

.page-faqs .legal-hero-orb-1 {
    background: linear-gradient(135deg, #006EFF 0%, rgba(0, 110, 255, 0.3) 100%);
}

/* Terms - Green */
.page-terms .legal-hero-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #34D399;
}

.page-terms .legal-hero-orb-1 {
    background: linear-gradient(135deg, #10B981 0%, rgba(16, 185, 129, 0.3) 100%);
}

/* Privacy - Orange */
.page-privacy .legal-hero-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #FBBF24;
}

.page-privacy .legal-hero-orb-1 {
    background: linear-gradient(135deg, #F59E0B 0%, rgba(245, 158, 11, 0.3) 100%);
}

/* Disclaimer - Red */
.page-disclaimer .legal-hero-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #F87171;
}

.page-disclaimer .legal-hero-orb-1 {
    background: linear-gradient(135deg, #EF4444 0%, rgba(239, 68, 68, 0.3) 100%);
}