/* Shared mobile fixes for contact, legal, and about pages */

@media (max-width: 992px) {
    body.contact-page .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {

    body.contact-page {
        overflow-x: hidden;
    }

    body.contact-page .contact-container,
    body.legal-page .terms-container,
    body.legal-page .privacy-container {
        max-width: 100%;
        width: 100%;
        padding: 16px 16px 32px;
    }

    body.contact-page .header,
    body.legal-page .header {
        margin-bottom: 24px;
    }

    body.contact-page .header h1,
    body.legal-page .header h1 {
        font-size: clamp(1.75rem, 7vw, 2.2rem) !important;
        line-height: 1.15 !important;
        background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        color: transparent !important;
    }

    body.contact-page .header p,
    body.legal-page .header p {
        font-size: 0.95rem;
        padding: 0 4px;
    }

    body.contact-page .contact-wrapper {
        gap: 20px;
        width: 100%;
    }

    body.contact-page .contact-wrapper > * {
        min-width: 0;
        width: 100%;
    }

    body.contact-page .contact-info,
    body.contact-page .contact-form,
    body.contact-page .faq-section {
        padding: 18px 16px;
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    body.contact-page .contact-info h2,
    body.contact-page .contact-form h2,
    body.contact-page .faq-section h2 {
        font-size: 1.2rem;
        line-height: 1.35;
        color: #4f46e5 !important;
        -webkit-text-fill-color: #4f46e5 !important;
        background: none !important;
        margin-bottom: 16px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e2e8f0;
    }

    body.contact-page .info-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    body.contact-page .info-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%) !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        font-size: 18px !important;
        box-shadow: none !important;
    }

    body.contact-page .info-content {
        min-width: 0;
        flex: 1;
    }

    body.contact-page .info-content h3 {
        font-size: 1rem;
    }

    body.contact-page .info-content p {
        font-size: 0.9rem;
        word-break: break-word;
    }

    body.contact-page #contactForm {
        width: 100%;
        max-width: 100%;
    }

    body.contact-page .form-group {
        margin-bottom: 18px;
        width: 100%;
    }

    body.contact-page .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    body.contact-page .form-group input,
    body.contact-page .form-group select,
    body.contact-page .form-group textarea {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 12px 14px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        border: 2px solid #e2e8f0 !important;
        box-shadow: none !important;
        -webkit-appearance: none;
        appearance: none;
        box-sizing: border-box;
    }

    body.contact-page .form-group select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 40px !important;
    }

    body.contact-page .form-group textarea {
        min-height: 130px;
        resize: vertical;
    }

    body.contact-page .btn-full {
        width: 100%;
        max-width: 100%;
        min-height: 50px;
        padding: 14px 18px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        box-sizing: border-box;
    }

    body.contact-page .response-message {
        font-size: 0.9rem;
        padding: 16px;
        word-break: break-word;
    }

    body.contact-page .faq-question {
        font-size: 0.95rem;
        align-items: flex-start;
    }

    body.contact-page .faq-answer {
        font-size: 0.9rem;
    }

    body.contact-page .site-footer {
        margin-top: 0;
    }

    body.legal-page .content-section {
        padding: 18px 16px;
        margin-bottom: 20px;
        border-radius: 14px;
    }

    body.legal-page .content-section:hover {
        transform: none;
    }

    body.legal-page .content-section h2 {
        font-size: 1.2rem;
        line-height: 1.35;
    }

    body.legal-page .content-section h3 {
        font-size: 1.05rem;
        margin: 18px 0 10px;
    }

    body.legal-page .content-section p,
    body.legal-page .content-section li {
        font-size: 0.92rem;
    }

    body.legal-page .content-section ul,
    body.legal-page .content-section ol {
        margin-left: 18px;
        padding-right: 4px;
    }

    body.legal-page .highlight-box,
    body.legal-page .warning-box,
    body.legal-page .consent-section {
        padding: 16px;
    }

    body.legal-page .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }

    body.legal-page .data-table th,
    body.legal-page .data-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    body.legal-page .footer {
        margin-top: 32px;
        padding-top: 24px;
        font-size: 0.85rem;
    }

    body.about-page .page-header {
        padding: 32px 16px 48px;
    }

    body.about-page .section-title {
        font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
        line-height: 1.2;
        padding: 0 4px;
    }

    body.about-page .section-subtitle {
        font-size: 0.95rem;
        padding: 0 4px;
    }

    body.about-page .container {
        padding: 48px 16px;
    }

    body.about-page .mission-content h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem);
        line-height: 1.25;
    }

    body.about-page .mission-content p {
        font-size: 0.95rem;
    }

    body.about-page .mission-image {
        margin-bottom: 24px;
    }

    body.about-page .stat-card {
        position: static;
        margin-top: 16px;
        width: 100%;
    }

    body.about-page .steps-grid {
        gap: 24px;
        margin-top: 32px;
    }

    body.about-page .step-card {
        padding: 12px 8px;
    }

    body.about-page .grid-features {
        gap: 14px;
    }

    body.about-page .feature-box {
        padding: 22px 18px;
    }

    body.about-page .cta-box {
        padding: 32px 20px;
        margin-top: 32px;
        border-radius: 18px;
    }

    body.about-page .cta-box h2 {
        font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
    }

    body.about-page .footer-content {
        text-align: left;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    body.contact-page .contact-container,
    body.legal-page .terms-container,
    body.legal-page .privacy-container {
        padding: 12px 12px 28px;
    }

    body.contact-page .contact-info,
    body.contact-page .contact-form,
    body.contact-page .faq-section,
    body.legal-page .content-section {
        padding: 16px 14px;
    }
}

/* Homepage hero — larger headline on mobile only */
@media (max-width: 768px) {
    body.home-page .hero .hero-title {
        font-size: clamp(2.4rem, 9.5vw, 3.15rem) !important;
        line-height: 1.06 !important;
        letter-spacing: -0.035em !important;
        font-weight: 1000 !important;
        padding: 0 6px;
    }
}
