/* ==========================================================
   КЛЁВОЕ МЕСТО — ПРАВИЛА ОБЩЕНИЯ
   Общая визуальная основа: chat.css
========================================================== */

/* Длинная страница должна расти по высоте документа. */
.terms-page {
    flex: 1 0 auto;
    overflow: visible;
}

/* Основная карточка. */
.terms-page .terms-layout {
    grid-template-columns: 270px minmax(0, 1fr);
}

/* Содержимое не ограничиваем высотой окна. */
.terms-page .chat-main {
    min-height: 0;
}

/* Разделы правил. */
.terms-content {
    padding: 40px 46px 54px;

    display: flex;
    flex-direction: column;

    gap: 30px;
}

.terms-section {
    min-width: 0;
}

.terms-section:not(.terms-note) {
    padding-bottom: 26px;

    border-bottom: 1px solid rgba(16, 44, 40, 0.10);
}

.terms-section h3 {
    margin: 0 0 14px;

    color: #103d35;

    font-size: 19px;
    line-height: 1.4;
}

.terms-section p,
.terms-section li {
    color: #52645e;

    font-size: 14px;
    line-height: 1.8;
}

.terms-section p {
    margin: 0;
}

.terms-section p+p {
    margin-top: 14px;
}

.terms-section ul {
    margin: 0;
    padding-left: 22px;
}

.terms-section li+li {
    margin-top: 9px;
}

.terms-section a {
    color: #0d6a52;
    font-weight: 800;
}

/* Информационная карточка в конце правил. */
.terms-note {
    padding: 22px 24px;

    background: #fff3d3;

    border: 1px solid #efdb9c;
    border-radius: 16px;
}

.terms-note h3 {
    color: #68542a;
}

.terms-note p {
    color: #68542a;
}

/* Планшеты и телефоны. */
@media (max-width: 960px) {

    .terms-page .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-content {
        padding: 30px 26px 40px;
        gap: 24px;
    }
}

@media (max-width: 520px) {

    .terms-content {
        padding: 26px 20px 36px;
    }

    .terms-section h3 {
        font-size: 17px;
    }

    .terms-section p,
    .terms-section li {
        font-size: 13px;
    }

    .terms-note {
        padding: 18px;
    }
}