/* =========================================================
   MATSYORA - MOBILE TERMS & CONDITIONS
   MATCHED TO MY ORDERS / ABOUT / CONTACT / FAQ / PRIVACY
========================================================= */

@media screen and (max-width: 768px) {

    /* ==========================================
       GLOBAL
    ========================================== */

    * {
        box-sizing: border-box;
    }

    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    body {
        background: #f4f7fb;
        color: #0f172a;
        font-family: Arial, sans-serif;
        overflow-x: hidden;
    }


    /* ==========================================
       TOP HEADER
    ========================================== */

    .top-header {
        width: 100%;
        height: auto;

        padding: 12px 12px 10px;

        background: linear-gradient(
            90deg,
            #fff7ed 0%,
            #fffbeb 50%,
            #ffffff 100%
        );

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 0;

        border-bottom: 1px solid #dbeafe;

        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

        position: sticky;
        top: 0;
        z-index: 100;
    }


    /* ==========================================
       BRAND
    ========================================== */

    .brand {
        display: flex;

        align-items: center;
        justify-content: center;

        gap: 9px;

        width: fit-content;
        max-width: 100%;

        margin: 0 auto 14px;

        padding: 0;

        min-width: 0;
    }


    /* ==========================================
       LOGO
    ========================================== */

    .logo {
        width: 52px;
        height: 52px;

        margin: 0;
        padding: 0;

        flex-shrink: 0;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    .logo img {
        width: 100px;
        height: 100px;

        object-fit: contain;

        display: block;

        margin: 0;
        padding: 0;

        transform: none;
    }


    /* ==========================================
       BRAND TEXT
    ========================================== */

    .brand > div:last-child {
        display: flex;

        flex-direction: column;

        align-items: flex-start;
        justify-content: center;

        min-width: 0;
    }

    .brand h2 {
        margin: 0;

        padding: 0;

        font-size: 38px;

        line-height: 0.95;

        font-weight: 800;

        letter-spacing: -1.4px;

        white-space: nowrap;

        color: #0b376d;
    }

    .brand h2 span {
        color: #ff8c00;
    }

    .brand p {
        margin: 5px 0 0;

        padding: 0;

        font-size: 12px;

        line-height: 1.2;

        font-weight: 500;

        color: #5d6b82;

        letter-spacing: 0.1px;

        white-space: nowrap;
    }


    /* ==========================================
       SEARCH AREA
    ========================================== */

    .search-area {
        display: none;
    }


    /* ==========================================
       NAVIGATION
    ========================================== */

    .nav-buttons {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;

        width: 100%;

        margin: 0;
    }

    .nav-buttons .outline-btn {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 100%;

        min-width: 0;

        padding: 14px 8px;

        background: #ffffff;

        border: 1px solid #3b82f6;
        border-radius: 16px;

        color: #2563eb;

        font-size: 15px;
        font-weight: 700;

        text-decoration: none;

        white-space: nowrap;
    }

    .nav-buttons .outline-btn.green {
        border-color: #22c55e;

        color: #16a34a;
    }

    .nav-buttons .outline-btn.red {
        border-color: #ef4444;

        color: #dc2626;
    }


    /* ==========================================
       TERMS CONTAINER
    ========================================== */

    .terms-container {
        width: calc(100% - 28px);

        max-width: 100%;

        margin: 20px auto 30px;

        padding: 24px 17px;

        background: #ffffff;

        border: 1px solid #e2e8f0;
        border-radius: 16px;

        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);

        color: #334155;

        line-height: 1.65;
    }


    /* ==========================================
       MAIN TITLE
    ========================================== */

    .terms-container h1 {
        margin: 0 0 7px;

        color: #075985;

        font-size: 29px;
        font-weight: 800;

        line-height: 1.2;

        text-align: center;

        letter-spacing: -0.4px;
    }


    /* ==========================================
       UPDATED DATE
    ========================================== */

    .terms-container .updated {
        margin: 0 0 23px;

        color: #64748b;

        font-size: 12px;
        font-weight: 600;

        text-align: center;
    }


    /* ==========================================
       PARAGRAPHS
    ========================================== */

    .terms-container p {
        margin: 0 0 13px;

        color: #475569;

        font-size: 13.5px;

        line-height: 1.7;
    }

    .terms-container strong {
        color: #0f172a;
    }


    /* ==========================================
       SECTION HEADINGS
    ========================================== */

    .terms-container h2 {
        margin: 27px 0 10px;

        color: #075f70;

        font-size: 19px;
        font-weight: 800;

        line-height: 1.35;
    }


    /* ==========================================
       LISTS
    ========================================== */

    .terms-container ul {
        margin: 8px 0 15px;

        padding-left: 20px;
    }

    .terms-container li {
        margin-bottom: 8px;

        color: #475569;

        font-size: 13.5px;

        line-height: 1.6;
    }

    .terms-container li::marker {
        color: #0891b2;
    }


    /* ==========================================
       LINKS
    ========================================== */

    .terms-container a {
        color: #0369a1;

        font-weight: 700;

        text-decoration: none;

        word-break: break-word;
    }

    .terms-container a:hover,
    .terms-container a:active {
        text-decoration: none;
    }


    /* ==========================================
       BACK HOME
    ========================================== */

    .back-home {
        margin: 31px 0 2px;

        text-align: center;
    }

    .back-home a {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        min-width: 170px;

        padding: 12px 20px;

        border-radius: 9px;

        background: #0077b6;

        color: #ffffff;

        font-size: 13.5px;
        font-weight: 700;

        text-decoration: none;

        box-shadow: 0 4px 12px rgba(0, 119, 182, 0.14);
    }

    .back-home a:hover,
    .back-home a:active {
        background: #0077b6;

        color: #ffffff;

        text-decoration: none;
    }


    /* ==========================================
       SMALL PHONES
    ========================================== */

    @media (max-width: 390px) {

        .top-header {
            padding-left: 10px;
            padding-right: 10px;
        }

        .brand {
            gap: 7px;

            margin-bottom: 12px;
        }

        .logo {
            width: 48px;
            height: 48px;
        }

        .logo img {
            width: 92px;
            height: 92px;
        }

        .brand h2 {
            font-size: 34px;
        }

        .brand p {
            font-size: 11px;
        }

        .nav-buttons {
            gap: 8px;
        }

        .nav-buttons .outline-btn {
            padding: 12px 6px;

            font-size: 14px;
        }

        .terms-container {
            width: calc(100% - 20px);

            margin-top: 14px;

            padding: 21px 14px;
        }

        .terms-container h1 {
            font-size: 26px;
        }

        .terms-container h2 {
            margin-top: 24px;

            font-size: 18px;
        }

        .terms-container p,
        .terms-container li {
            font-size: 13px;
        }

        .back-home a {
            width: 100%;

            min-width: 0;
        }
    }
}