.agreement-page {
    box-sizing: border-box;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 32px 20px;
}

.agreement-back {
    border: 0;
    padding: 8px 0;
    background: transparent;
    color: #444;
    cursor: pointer;
}

.agreement-page h1 {
    margin: 20px 0;
    font-size: 28px;
}

.agreement-placeholder {
    border: 1px solid #d7dce2;
    border-radius: 8px;
    padding: 24px;
    background: #f7f9fb;
    line-height: 1.7;
}

.agreement-placeholder p {
    margin: 12px 0 0;
}

.agreement-service {
    width: min(840px, 100%);
    padding-bottom: 80px;
    color: #222;
    background: #fff;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.agreement-service h1 {
    margin-bottom: 32px;
    line-height: 1.4;
}

.agreement-content {
    font-size: 16px;
    line-height: 1.8;
}

.agreement-content section + section {
    margin-top: 32px;
}

.agreement-content h2 {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.5;
}

.agreement-content p {
    margin-bottom: 12px;
}

.agreement-content ol,
.agreement-content ul {
    margin: 12px 0;
    padding-left: 1.75em;
}

.agreement-content ul {
    list-style: disc;
}

.agreement-content li + li {
    margin-top: 6px;
}

.agreement-content a {
    color: #174e96;
    text-decoration: underline;
    text-underline-offset: 3px;
    line-height: inherit;
}

.agreement-content a:hover {
    color: #103969;
}

@media (max-width: 600px) {
    .agreement-service h1 {
        font-size: 26px;
    }

    .agreement-content h2 {
        font-size: 19px;
    }
}

@media print {
    .agreement-service {
        width: 100%;
        padding: 0;
    }

    .agreement-service .agreement-back {
        display: none;
    }

    .agreement-content h2 {
        break-after: avoid;
    }
}
