html.legal-document {
    background: #fff;
    color-scheme: light;
}

html.legal-document body.tos-page {
    min-height: 100vh;
    margin: 0;
    background: #fff;
    color: #000;
}

html.legal-document .tos-header {
    border: 0;
}

html.legal-document .tos-contents {
    background: #fff;
    border: 0;
}

html.legal-document .tos-document__logo img {
    filter: none;
}

.tos-required-page {
    min-height: 100vh;
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
}

.tos-document {
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 88px;
}

.tos-document__logo {
    display: inline-block;
    margin-bottom: 44px;
}

.tos-document__logo img {
    display: block;
    width: 160px;
    max-width: 100%;
}

.tos-document__content {
    max-width: 100%;
}

.tos-document h1 {
    margin: 0 0 14px;
    color: #000;
    font-size: clamp(2rem, 5vw, 2.55rem);
    font-weight: 800;
    line-height: 1.2;
}

.tos-document p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
}

.tos-document a {
    color: #000;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.tos-document a:focus-visible,
.tos-contents summary:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.tos-header__subtitle {
    color: #000;
    font-weight: 600;
}

.tos-document .tos-header__edition {
    margin-top: 10px;
    color: #000;
    font-size: .94rem;
}

.tos-document .tos-intro {
    margin-top: 28px;
    font-weight: 500;
}

.tos-contents {
    margin-top: 34px;
}

.tos-contents summary {
    padding: 14px 0;
    color: #000;
    cursor: pointer;
    font-weight: 700;
}

.tos-contents ol {
    columns: 2;
    column-gap: 36px;
    margin: 0 0 18px;
    padding-left: 22px;
}

.tos-contents li {
    break-inside: avoid;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tos-contents a {
    font-size: .94rem;
}

.tos-section {
    margin-top: 44px;
    scroll-margin-top: 24px;
}

.tos-section h2 {
    margin: 0 0 18px;
    color: #000;
    font-size: 1.4rem;
    font-weight: 750;
    line-height: 1.3;
}

.tos-section__number {
    margin-right: 4px;
}

.tos-document .tos-clause {
    margin-bottom: 16px;
}

.tos-clause__number {
    color: #000;
    font-weight: 750;
}

.tos-document .tos-clause--continuation {
    padding-left: 2.25rem;
}

.tos-document .tos-list {
    margin: 0 0 16px;
    padding-left: 2.25rem;
}

.tos-list li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.75;
}

.tos-required-message,
.tos-required-error {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.tos-required-background {
    min-height: 100vh;
    display: grid;
    place-items: center;
    opacity: 0.16;
}

.tos-required-background img {
    width: min(320px, 70vw);
}

.tos-required-message a {
    color: #2563eb;
    font-weight: 700;
}

.tos-required-error {
    margin-top: 16px;
    color: #b91c1c;
    font-weight: 600;
}

.tos-required-page .custom-modal-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media screen and (max-width: 600px) {
    .tos-document {
        width: calc(100% - 32px);
        padding: 24px 0 64px;
    }

    .tos-document__logo {
        margin-bottom: 32px;
    }

    .tos-contents ol {
        columns: 1;
    }

    .tos-section {
        margin-top: 36px;
    }

    .tos-section h2 {
        font-size: 1.27rem;
    }

    .tos-document .tos-clause--continuation {
        padding-left: 0;
    }

    .tos-document .tos-list {
        padding-left: 1.5rem;
    }
}

@media print {
    @page {
        margin: 16mm 18mm;
    }

    html.legal-document body.tos-page {
        width: auto;
        min-height: 0;
        display: block;
        overflow: visible;
        color: #000;
    }

    .tos-document {
        width: auto;
        padding: 0;
    }

    .tos-document__logo,
    .tos-contents {
        display: none;
    }

    .tos-section h2 {
        break-after: avoid;
    }

    .tos-document p {
        orphans: 3;
        widows: 3;
    }

    .tos-document a {
        color: inherit;
    }
}
