@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #222;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

    .steps {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        line-height: 1.18;
        margin-bottom: 0.7rem;
    }
    h2 {
        font-size: 1.4rem;
        line-height: 1.22;
        margin-bottom: 0.6rem;
    }
    h3 {
        font-size: 1.15rem;
        line-height: 1.25;
        margin-bottom: 0.5rem;
    }
    p, li, .logo__text {
        font-size: 0.98rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    .container {
        padding: 0 0.5rem;
    }
    .hero-content {
        padding: 1.2rem 0 0.7rem 0;
    }
    .steps {
        margin: 0.5rem 0;
        gap: 0.5rem;
    }
    .step {
        padding-bottom: 0.4rem;
    }
    .benefits-center {
        padding: 0 0.7rem;
    }
    .how-it-works-flex {
        flex-direction: column !important;
        gap: 1.2rem;
        align-items: stretch;
    }
    .how-it-works-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 1.2rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    section#how-it-works > .container.how-it-works-flex:first-of-type > .how-it-works-image,
    section#how-it-works > .container.how-it-works-flex:nth-of-type(1) > .how-it-works-image {
        display: none !important;
    }
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    .table-responsive table {
        min-width: 600px;
        width: 100%;
        display: table;
    }
    .legal-page th,
    .legal-page td {
        padding: 0.5rem 0.5rem;
        word-break: break-word;
        white-space: normal;
        min-width: 100px;
    }
}

@media (min-width: 769px) {
    .how-it-works-flex {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    .how-it-works-image {
        width: auto;
        margin-bottom: 0;
    }
    .how-it-works-image img {
        width: 420px;
        max-width: 100%;
        border-radius: 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    }
}