:root {
    --agreement-navy: #173d5b;
    --agreement-paper: #fbfaf8;
    --agreement-text: #111111;
    --agreement-scrollbar: #bdbdbd;
}

html,
body.agreement-page {
    height: 100%;
}

body.agreement-page {
    margin: 0;
    overflow: hidden;
    color: var(--agreement-text);
    background: var(--agreement-paper);
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 15px;
}

.agreement-header {
    height: 80px;
    padding: 0 80px;
    display: flex;
    align-items: center;
    background: var(--agreement-navy);
}

.agreement-logo {
    display: block;
    width: 126px;
    line-height: 0;
}

.agreement-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.agreement-main {
    height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-color: var(--agreement-scrollbar) transparent;
    scrollbar-width: thin;
}

.agreement-main::-webkit-scrollbar {
    width: 8px;
}

.agreement-main::-webkit-scrollbar-track {
    background: transparent;
}

.agreement-main::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: var(--agreement-scrollbar);
}

.agreement-main::-webkit-scrollbar-thumb:hover {
    background: #a9a9a9;
}

.agreement-article {
    width: 1200px;
    margin: 0 auto;
    padding: 34px 0 64px;
    text-align: left;
}

.agreement-title {
    margin: 0 0 42px;
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
}

.agreement-heading {
    margin: 14px 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.agreement-paragraph {
    margin: 0 0 10px;
    text-align: left;
    font-size: 15px;
    line-height: 1.48;
}

.agreement-paragraph--item {
    margin-left: 28px;
}

.agreement-paragraph--notice {
    margin-bottom: 16px;
    font-weight: 600;
}

.agreement-paragraph--closing {
    margin-top: 30px;
    text-align: center;
}

.agreement-paragraph--meta {
    text-align: center;
    color: #4c5661;
}

@media (max-width: 800px) {
    body.agreement-page {
        font-size: 14px;
    }

    .agreement-header {
        height: 60px;
        padding: 0 18px;
    }

    .agreement-logo {
        width: 110px;
    }

    .agreement-main {
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        overflow-x: hidden;
    }

    .agreement-article {
        width: auto;
        max-width: 100%;
        margin: 0;
        padding: 24px 18px 48px;
    }

    .agreement-title {
        margin-bottom: 28px;
        font-size: 28px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .agreement-heading {
        margin: 16px 0 8px;
        font-size: 19px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .agreement-paragraph {
        margin-bottom: 11px;
        font-size: 14px;
        line-height: 1.6;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .agreement-paragraph--item {
        margin-left: 16px;
    }

    .agreement-paragraph--closing {
        margin-top: 26px;
    }
}
