/* ============================================
   Legal Pages Styles (Privacy, Terms, Refund, Contact)
   ============================================ */

/* Legal Page Layout */
.legal-page {
    padding: 160px 0 80px;
    min-height: 100vh;
    background: var(--gray-50);
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 12px;
    color: var(--gray-900);
}

.last-updated {
    color: var(--gray-500);
    font-size: 14px;
}

/* Legal Content */
.legal-content {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin: 24px 0 12px;
}

.legal-content p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-content li strong {
    color: var(--gray-800);
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

/* Contact Section in Legal Pages */
.contact-section {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.contact-section h2 {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info {
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 8px;
}

/* Highlight Box */
.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.highlight-content h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
}

.highlight-content p {
    margin: 0;
    color: var(--gray-600);
}

/* ============================================
   Contact Page Specific Styles
   ============================================ */
.contact-page {
    padding: 160px 0 80px;
    min-height: 100vh;
    background: var(--gray-50);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 12px;
    color: var(--gray-900);
}

.contact-header p {
    color: var(--gray-500);
    font-size: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Contact Info Cards */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.contact-card p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-card .highlight {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-section {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-form-card {
    padding: 40px;
}

.contact-form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--gray-900);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 44px;
}

/* Contact FAQ Section */
.contact-faq {
    text-align: center;
    padding: 48px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.contact-faq h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.contact-faq p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .legal-page,
    .contact-page {
        padding: 120px 0 60px;
    }

    .legal-content {
        padding: 28px;
        border-radius: var(--radius-lg);
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

    .highlight-box {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-section {
        order: 2;
    }

    .contact-form-section {
        order: 1;
    }

    .contact-form-card {
        padding: 28px;
    }

    .contact-section {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 20px;
    }

    .legal-content ul,
    .legal-content ol {
        margin-left: 16px;
    }

    .contact-faq {
        padding: 32px 20px;
    }
}
