.bloom-terms-open {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.bloom-terms {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.55);
}

.bloom-terms[hidden] {
    display: none;
}

.bloom-terms__panel {
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: min(85vh, 820px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.bloom-terms__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 16px 24px;
    border-bottom: 1px solid #eceae6;
}

.bloom-terms .bloom-terms__head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.bloom-terms .bloom-terms__close {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bloom-terms .bloom-terms__close img {
    width: 24px;
    height: 24px;
}

.bloom-terms__body {
    overflow: auto;
    padding: 20px 24px 28px;
    font-size: 14px;
    line-height: 1.7;
    color: #34383c;
}

.bloom-terms__body[hidden] {
    display: none;
}

.bloom-terms__body img {
    max-width: 100%;
    height: auto;
}

.bloom-terms__body table {
    max-width: 100%;
}

@media (max-width: 768px) {
    .bloom-terms {
        padding: 16px;
    }

    .bloom-terms__head {
        padding: 16px 16px 14px;
    }

    .bloom-terms .bloom-terms__head h2 {
        font-size: 18px;
    }

    .bloom-terms__body {
        padding: 16px 16px 24px;
    }
}
