@charset "utf-8";

.terms-page {
    min-width: 0;
}

.terms-page h2 {
    margin: 34px 0 14px;
    padding: 8px 0;
    border-bottom: 2px solid #eadcc8;
    background: #fff;
    color: #895400;
    line-height: 1.5;
    scroll-margin-top: 20px;
}

.terms-page p {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.terms-page a {
    color: #a86600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    overflow-wrap: anywhere;
}

.terms-toc {
    margin: 24px 0 30px;
    padding: 14px 0;
    border-top: 1px solid #eadcc8;
    border-bottom: 1px solid #eadcc8;
}

.terms-toc-title {
    margin: 0 0 10px;
    color: #895400;
    font-weight: 700;
}

.terms-toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-toc li {
    min-width: 0;
}

.terms-list {
    margin: 12px 0 18px;
    padding-left: 1.2em;
    line-height: 1.8;
    list-style: disc;
    list-style-position: outside;
}

.terms-list > li {
    margin: 8px 0;
    padding-left: 0.1em;
}

@media (max-width: 600px) {
    .terms-page h2 {
        margin: 28px 0 12px;
    }

    .terms-toc ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .terms-list {
        margin: 10px 0 16px;
        padding-left: 1.1em;
    }

    .terms-list > li {
        margin: 7px 0;
    }
}
