/* Legal & Support Page Styles */

/* Hero Section Updates */
.hero-text.legal-support {
    align-items: center;
    text-align: center;
    padding: 60px 20px 40px 20px;
}

.hero-text.legal-support h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 0 20px 0;
    background: #1a1a1a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Legal Hero Section */
.legal-hero {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
    position: relative;
}

.legal-icon {
    margin-bottom: 30px;
    opacity: 0.8;
}

.legal-icon svg {
    width: 80px;
    height: 80px;
    color: #2d5016;
    transition: transform 0.3s ease;
}

.legal-hero:hover .legal-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.legal-hero h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.legal-description {
    font-size: 16pt;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 auto 40px auto;
    max-width: 600px;
}

/* Legal Documents Grid */
.legal-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto 50px auto;
    max-width: 1000px;
}

.legal-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08),
                0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-origin: center;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-card:hover::before {
    opacity: 1;
}

.legal-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12),
                0 0 30px rgba(102, 126, 234, 0.15);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-icon {
    background: linear-gradient(135deg, #2d5016 0%, #3a6b1e 100%);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.privacy-icon {
    background: linear-gradient(135deg, #2d5016 0%, #3a6b1e 100%);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.guidelines-icon {
    background: linear-gradient(135deg, #b87333 0%, #cd853f 100%);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.3);
}

.legal-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.privacy-icon svg,
.guidelines-icon svg {
    color: white;
}

.card-content {
    text-align: center;
}

.card-content h3 {
    font-size: 18pt;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.card-content p {
    font-size: 16pt;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 20px 0;
}

.legal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b87333 0%, #cd853f 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.legal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 115, 51, 0.3);
}

/* FAQ Section */
.faq-section {
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.faq-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 30px 0;
    letter-spacing: -0.5px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.faq-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 0;
    text-align: left;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(45, 80, 22, 0.05);
}

.faq-question h4 {
    font-size: 16pt !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
}

.faq-toggle {
    font-size: 16px;
    font-weight: 600;
    color: #2d5016;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    font-size: 14pt !important;
    line-height: 1.4 !important;
    color: #4a5568 !important;
    margin: 0 !important;
    padding: 0 15px 10px 15px !important;
    text-align: left !important;
    list-style-position: inside !important;
}

.faq-answer ul {
    margin: 0 !important;
    padding: 0 20px 15px 40px !important;
    text-align: left !important;
    list-style: none !important;
}

.faq-answer li {
    font-size: 13pt !important;
    line-height: 1.8 !important;
    color: #4a5568 !important;
    margin: 10px 0 !important;
    text-align: left !important;
    position: relative !important;
    padding-left: 20px !important;
}

.faq-answer li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2d5016;
    font-size: 20px;
    line-height: 1.4;
}

.faq-item.active .faq-question {
    background-color: rgba(45, 80, 22, 0.1);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Support Contact Section */
.support-contact {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.support-contact h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.support-contact p {
    font-size: 16pt;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 25px 0;
}

.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b87333 0%, #cd853f 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.support-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 115, 51, 0.3);
}

/* Magnetic Card Effect */
.magnetic-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.magnetic-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.magnetic-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text.legal-support {
        padding: 40px 15px 20px 15px;
    }
    
    .legal-hero {
        margin: 0 auto 40px auto;
        padding: 0 15px;
    }
    
    .legal-icon {
        margin-bottom: 20px;
    }
    
    .legal-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .legal-hero h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .legal-description {
        font-size: 14pt !important;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .legal-documents {
        gap: 15px;
        padding: 0 15px;
    }
    
    .legal-card {
        padding: 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .card-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .card-content h3 {
        font-size: 16pt !important;
        margin-bottom: 8px;
    }
    
    .card-content p {
        font-size: 14pt !important;
        margin-bottom: 15px;
    }
    
    .legal-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .faq-section {
        margin: 0 auto 40px auto;
        padding: 0 15px;
    }
    
    .faq-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .faq-list {
        gap: 8px;
    }
    
    .faq-item {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h4 {
        font-size: 14pt !important;
    }
    
    .faq-toggle {
        font-size: 14px;
    }
    
    .faq-answer p {
        font-size: 12pt !important;
        padding: 0 20px 15px 20px;
    }
    
    .faq-answer ul {
        padding: 0 20px 15px 30px;
    }
    
    .faq-answer li {
        font-size: 12pt !important;
        margin-bottom: 5px;
    }
    
    .support-contact {
        margin: 0 auto;
        padding: 25px 20px;
        max-width: 100%;
    }
    
    .support-contact h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .support-contact p {
        font-size: 14pt !important;
        margin-bottom: 20px;
    }
    
    .support-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-text.legal-support {
        padding: 30px 10px 15px 10px;
    }
    
    .legal-hero {
        margin: 0 auto 30px auto;
        padding: 0 10px;
    }
    
    .legal-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .legal-hero h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .legal-description {
        font-size: 13pt !important;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .legal-documents {
        gap: 12px;
        padding: 0 10px;
    }
    
    .legal-card {
        padding: 15px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .card-content h3 {
        font-size: 15pt !important;
        margin-bottom: 6px;
    }
    
    .card-content p {
        font-size: 13pt !important;
        margin-bottom: 12px;
    }
    
    .legal-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .faq-section {
        margin: 0 auto 30px auto;
        padding: 0 10px;
    }
    
    .faq-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .faq-list {
        gap: 6px;
    }
    
    .faq-question {
        padding: 12px 15px;
    }
    
    .faq-question h4 {
        font-size: 13pt !important;
    }
    
    .faq-toggle {
        font-size: 12px;
    }
    
    .faq-answer p {
        font-size: 11pt !important;
        padding: 0 15px 12px 15px;
    }
    
    .faq-answer ul {
        padding: 0 15px 12px 25px;
    }
    
    .faq-answer li {
        font-size: 11pt !important;
        margin-bottom: 4px;
    }
    
    .support-contact {
        padding: 20px 15px;
    }
    
    .support-contact h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .support-contact p {
        font-size: 13pt !important;
        margin-bottom: 15px;
    }
    
    .support-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}
