/* =========================================
   NOVAPAY — TERMS & CONDITIONS
   ========================================= */

:root {
    --primary: #2563eb;
    --primary-light: #eef4ff;
    --text: #111827;
    --muted: #667085;
    --border: #e5e7eb;
    --background: #f7f9fc;
    --white: #ffffff;
}


/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    -webkit-font-smoothing: antialiased;
}


/* PAGE */

.terms-page {
    width: 100%;
    max-width: 720px;

    margin: 0 auto;

    padding: 0 16px 35px;
}


/* =========================================
   HEADER
   ========================================= */

.terms-header {
    position: relative;

    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom: 1px solid var(--border);
}

.terms-header h1 {
    font-size: 22px;
    font-weight: 700;

    letter-spacing: -0.4px;
}

.back-btn {
    position: absolute;
    left: 0;

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: var(--white);
    color: var(--primary);

    font-size: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.06);
}


/* =========================================
   INTRO
   ========================================= */

.terms-intro {
    padding: 28px 4px 22px;
}

.terms-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 14px;

    background: var(--primary-light);

    font-size: 23px;
}

.terms-intro h2 {
    font-size: 22px;
    font-weight: 800;

    letter-spacing: -0.4px;

    margin-bottom: 8px;
}

.terms-intro p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.55;
}

.last-updated {
    margin-top: 10px;

    font-size: 12px !important;

    color: #98a2b3 !important;
}


/* =========================================
   CONTENT
   ========================================= */

.terms-content {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* =========================================
   TERMS SECTION
   ========================================= */

.terms-section {
    padding: 18px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 17px;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.035);
}

.terms-section h2 {
    margin-bottom: 9px;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.35;
}

.terms-section p {
    margin-bottom: 9px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

.terms-section p:last-child {
    margin-bottom: 0;
}


/* =========================================
   FOOTER
   ========================================= */

.terms-footer {
    margin-top: 18px;

    padding: 20px;

    text-align: center;

    background: var(--primary-light);

    border: 1px solid #dbe7ff;

    border-radius: 17px;
}

.terms-footer strong {
    color: var(--primary);

    font-size: 15px;
}

.terms-footer p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.45;
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 380px) {

    .terms-page {
        padding-left: 13px;
        padding-right: 13px;
    }

    .terms-header {
        height: 68px;
    }

    .terms-header h1 {
        font-size: 20px;
    }

    .terms-intro h2 {
        font-size: 20px;
    }

    .terms-section {
        padding: 15px;
        border-radius: 15px;
    }

    .terms-section h2 {
        font-size: 15px;
    }

    .terms-section p {
        font-size: 12.5px;
    }
}