.terms-page .terms-card {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    padding: clamp(20px, 4vw, 48px);
    border: 1px solid #e9e1d2;
    border-radius: 24px;
    background: #fcfaf6;
    text-align: start;
    overflow-wrap: anywhere;
}

.terms-card > h1 {
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9e1d2;
    color: var(--color-Primary1);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.6;
}

.terms-content,
.terms-empty {
    color: #333;
    font-size: 16px;
    line-height: 1.9;
}

.terms-content :is(p, li, blockquote) {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.terms-content :is(p, ul, ol, blockquote, table, pre) {
    margin-block: 0 1.25em;
}

.terms-content :is(h1, h2, h3, h4, h5, h6) {
    margin-block: 1.5em 0.65em;
    color: #262626;
    font-weight: 700;
    line-height: 1.6;
}

.terms-content :is(h1, h2) {
    font-size: clamp(21px, 2.5vw, 27px);
}

.terms-content :is(h3, h4, h5, h6) {
    font-size: 19px;
}

.terms-content :is(ul, ol) {
    padding-inline-start: 1.5em;
    padding-inline-end: 0;
}

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

.terms-content ol {
    list-style: decimal;
}

.terms-content li {
    display: list-item;
    margin-block: 0.35em;
}

.terms-content a {
    color: var(--color-Primary1);
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.terms-content a:focus-visible {
    outline: 2px solid var(--color-Primary1);
    outline-offset: 3px;
}

.terms-content :is(img, video, iframe) {
    max-width: 100%;
    height: auto;
}

.terms-content :is(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.terms-content :is(th, td) {
    min-width: 8rem;
    padding: 10px 14px;
    border: 1px solid #e9e1d2;
    overflow-wrap: normal;
}

.terms-content blockquote {
    border-inline-start: 3px solid var(--color-Primary1);
    padding-inline-start: 18px;
}

.terms-content > :first-child {
    margin-top: 0;
}

.terms-content > :last-child,
.terms-empty {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .terms-page.section {
        padding-block: 32px;
    }

    .terms-page .terms-card {
        border-radius: 18px;
    }
}
