@font-face {
    font-family: 'Swei Marker Leg CJK SC';
    src: url('../fonts/CJK%20SC/SweiMarkerLegCJKsc-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Swei Marker Leg CJK SC';
    src: url('../fonts/CJK%20SC/SweiMarkerLegCJKsc-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

body {
    margin: 0;
}

.terms-page {
    position: relative;
    container-type: inline-size;
    color: #2b5e9a;
    font-family: 'Swei Marker Leg CJK SC', 'Microsoft JhengHei', Arial, sans-serif;
    font-weight: 500;
}

.page-image,
.confirm-button img {
    display: block;
    width: 100%;
    height: auto;
}

.page-image--phone {
    display: none;
}

.terms-content {
    position: absolute;
    top: 29.7%;
    left: 11.3%;
    width: 77.4%;
    font-size: .73cqw;
    line-height: 1.4;
}

.terms-content h1 {
    margin: 0 0 .7cqw;
    font-size: 1.9cqw;
    line-height: 1.3;
    text-align: center;
}

.term-row {
    display: grid;
    grid-template-columns: 2.9em minmax(0, 1fr);
}

.term-list {
    margin: 0;
    padding: 0 0 0 2.9em;
}

ul.term-list {
    list-style-position: outside;
}

.term-list li::marker {
    font-size: .65em;
}

.proportional-apostrophe {
    font-family: Arial, sans-serif;
}

.confirm-button {
    position: absolute;
    top: 87.2%;
    left: 41.56%;
    width: 16.88%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.confirm-button:focus-visible {
    outline: 3px solid #e3a540;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .page-image--web {
        display: none;
    }

    .page-image--phone {
        display: block;
    }

    .terms-content {
        top: 18.6%;
        left: 9.4%;
        width: 82%;
        font-size: 1.75cqw;
        line-height: 1.42;
    }

    .terms-content h1 {
        margin-bottom: 1.8cqw;
        font-size: 3.6cqw;
    }

    .term-row {
        grid-template-columns: 2em minmax(0, 1fr);
    }

    .term-list {
        padding-left: 2em;
    }

    .confirm-button {
        top: 91%;
        left: 31.765%;
        width: 36.47%;
    }
}
