/* Legal and Support Pages Styles - Dark Theme */

.legal-content {
    padding-top: 30px !important;
    padding-bottom: 60px;
    padding-left: 0;
    padding-right: 0;
    min-height: 80vh;
    background: var(--bg-dark);
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    background: rgba(17, 19, 23, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 3rem 3rem 3rem;
}

.legal-text h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-text ul,
.legal-text ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-text ul li,
.legal-text ol li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Support Page Styles */
.support-hero {
    background: var(--gradient-dark);
    padding: 30px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    animation: rotate 25s linear infinite;
}

.support-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.support-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.quick-links {
    padding: 30px 0 60px 0;
    background: var(--bg-darker);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.link-card {
    background: rgba(17, 19, 23, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.link-card:hover::before {
    transform: translateX(0);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.link-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.link-card p {
    color: var(--text-secondary);
}

.support-section {
    padding: 30px 0 60px 0;
    background: var(--bg-dark);
}

.support-section.bg-light {
    background: var(--bg-darker);
}

.support-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Getting Started Steps */
.guide-steps {
    max-width: 800px;
    margin: 0 auto;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.guide-step h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.guide-step p {
    color: var(--text-secondary);
}

/* FAQ Styles */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(17, 19, 23, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-item summary:hover {
    color: var(--primary-color);
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Troubleshooting Grid */
.trouble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trouble-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.trouble-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.trouble-item h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.trouble-item p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.trouble-item strong {
    color: var(--text-primary);
}

/* Contact Section */
.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-card {
    background: rgba(17, 19, 23, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    opacity: 0.2;
    filter: blur(20px);
    z-index: -1;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.response-time {
    text-align: center;
    padding: 2.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.response-time p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.response-time strong {
    color: var(--primary-color);
}

/* Responsive */
/* Scroll margin for anchor navigation */
#getting-started,
#faq,
#troubleshooting,
#contact {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    /* Hero sections */
    .legal-hero,
    .support-hero {
        padding: 40px 0 30px;
    }
    
    .legal-hero h1,
    .legal-content h1,
    .support-hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .legal-hero p,
    .support-hero p {
        font-size: 0.9rem;
    }
    
    /* Content sections */
    .legal-content,
    .support-section {
        padding: 15px 0 20px;
    }
    
    .legal-content {
        padding-top: 15px !important;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .legal-text h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .legal-text h3 {
        font-size: 1.1rem;
    }
    
    .legal-text p,
    .legal-text li {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .legal-text ul,
    .legal-text ol {
        padding-left: 1.5rem;
    }
    
    .legal-text {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .last-updated {
        margin-bottom: 1.5rem;
    }
    
    /* Support page */
    .quick-links {
        padding: 20px 0 15px;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .link-card {
        padding: 0.5rem 0.75rem 1rem !important;
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        text-align: center !important;
    }
    
    .link-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }
    
    .link-card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .link-card p {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }
    
    .support-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .guide-steps {
        gap: 0.75rem;
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .guide-step {
        display: block;
        text-align: left;
        padding: 0.75rem;
        background: rgba(17, 19, 23, 0.4);
        border-radius: 12px;
        margin-bottom: 0;
    }
    
    .guide-step h3 {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .guide-step p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0;
        padding-left: 2.5rem;
    }
    
    /* FAQ */
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-item summary {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .faq-item p {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Troubleshooting */
    .trouble-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trouble-item {
        padding: 1.25rem;
    }
    
    /* Contact */
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .guide-step {
        padding: 0.5rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .guide-step h3 {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .guide-step p {
        font-size: 0.8rem;
        padding-left: 2rem;
    }
    .legal-hero h1,
    .legal-content h1,
    .support-hero h1 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding-top: 10px !important;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .link-card {
        padding: 0.5rem 1rem 1rem !important;
        display: block !important;
        text-align: center !important;
    }
    
    .link-icon {
        font-size: 2.25rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }
    
    .link-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .link-card p {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }
    
    .legal-text h2 {
        font-size: 1.1rem;
    }
    
    .legal-text {
        padding: 1rem;
    }
    
    .last-updated {
        margin-bottom: 1rem;
    }
    
    .legal-section {
        padding: 1rem;
    }
}

/* Desktop-specific overrides for Support page (769px and up) */
@media (min-width: 769px) {
    .support-hero {
        padding: 20px 0 30px 0;
    }
    
    .quick-links {
        padding: 20px 0 25px 0;
    }
    
    .support-section {
        padding: 20px 0 25px 0;
    }
    
    .support-section h2 {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ, Troubleshooting, Contact sections */
    #getting-started,
    #faq,
    #troubleshooting,
    #contact {
        padding-top: 15px;
    }
    
    .faq-list {
        margin-top: 1rem;
    }
    
    .trouble-grid {
        margin-top: 1rem;
    }
    
    .contact-options {
        margin: 1.5rem auto 2rem;
    }
    
    .response-time {
        margin-top: 1.5rem;
    }
}