.terms-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.terms-page {
    display: flex;
    padding: 60px 120px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex: 1 0 0;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
}

.terms-page__title {
    width: 100%;
    max-width: 1200px;
    color: #133D8D;
    font-family: "Avenir Next LT Pro", "Avenir Next", Avenir, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
}

.terms-page__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    color: #616161;
    text-align: justify;
    font-family: Barlow, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.terms-page__subtitle {
    width: 100%;
    max-width: 1200px;
    color: #133D8D;
    font-family: "Avenir Next LT Pro", "Avenir Next", Avenir, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    margin: 0;
}

.terms-page__validity {
    width: 100%;
    max-width: 1200px;
    color: #616161;
    font-family: Barlow, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    margin: 0;
}

.terms-page__body p {
    margin: 0;
}

.terms-page__body h2,
.terms-page__body h3,
.terms-page__body h4 {
    color: #133D8D;
    font-family: "Avenir Next LT Pro", "Avenir Next", Avenir, sans-serif;
    font-style: normal;
    font-weight: 700;
    text-align: left;
}

.terms-page__body h2 {
    font-size: 20px;
    line-height: 120%;
    margin: 8px 0 0;
}

.terms-page__body h3 {
    font-size: 17px;
    line-height: 120%;
    margin: 4px 0 0;
}

.terms-page__body h4 {
    font-size: 16px;
    line-height: 120%;
    margin: 4px 0 0;
}

.terms-page__body ul {
    margin: 0;
    padding-left: 1.25rem;
    text-align: left;
}

.terms-page__body li {
    margin: 0 0 6px;
}

.terms-page__body li:last-child {
    margin-bottom: 0;
}

.terms-page__body strong {
    color: #133D8D;
}

.terms-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.terms-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    color: #616161;
    font-family: Barlow, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 135%;
    text-align: left;
}

.terms-table-wrap th,
.terms-table-wrap td {
    border: 1px solid #D9DDE5;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.terms-table-wrap th {
    background-color: #133D8D;
    color: #FFFFFF;
    font-weight: 700;
}

.terms-table-wrap tbody tr:nth-child(even) {
    background-color: #F7F8FA;
}

.terms-page__actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1200px;
}

.terms-page__back {
    display: inline-flex;
    height: 48px;
    padding: 14px 50px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-radius: 40px;
    background: #133D8D;
    color: #FFF;
    font-family: Outfit, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .terms-page {
        padding: 48px 40px;
    }
}

@media (max-width: 768px) {
    .terms-page {
        padding: 32px 20px;
        gap: 24px;
    }

    .terms-page__title {
        font-size: 20px;
    }

    .terms-page__subtitle {
        font-size: 16px;
    }

    .terms-page__validity {
        font-size: 14px;
    }

    .terms-page__body {
        font-size: 15px;
        line-height: 130%;
    }

    .terms-page__body h2 {
        font-size: 18px;
    }

    .terms-page__body h3 {
        font-size: 16px;
    }

    .terms-page__body h4 {
        font-size: 15px;
    }

    .terms-table-wrap table {
        min-width: 520px;
        font-size: 13px;
    }

    .terms-table-wrap th,
    .terms-table-wrap td {
        padding: 8px 10px;
    }

    .terms-page__back {
        width: 100%;
    }
}
