/**
 * web/css/yoblocks-content.css
 *
 * Стили публичного вывода YoBlocks для legal.yonotify.ru
 */

.legal-content .ybe-document {
    color: #1f2937;
    font-size: 17px;
    line-height: 1.75;
}

.legal-content .ybe-block + .ybe-block {
    margin-top: 18px;
}

.legal-content .ybe-heading {
    margin: 32px 0 14px;
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
}

.legal-content .ybe-heading:first-child {
    margin-top: 0;
}

.legal-content .ybe-heading-2 {
    font-size: clamp(24px, 3vw, 30px);
}

.legal-content .ybe-heading-3 {
    font-size: clamp(20px, 2.5vw, 24px);
}

.legal-content .ybe-heading-4,
.legal-content .ybe-heading-5,
.legal-content .ybe-heading-6 {
    font-size: 18px;
}

.legal-content .ybe-paragraph {
    margin: 0 0 16px;
    color: #374151;
}

.legal-content .ybe-paragraph:last-child {
    margin-bottom: 0;
}

.legal-content .ybe-list {
    margin: 0 0 18px;
    padding-left: 1.4rem;
    color: #374151;
}

.legal-content .ybe-list li + li {
    margin-top: 8px;
}

.legal-content .ybe-list li::marker {
    color: #2563eb;
}

.legal-content .ybe-quote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid #2563eb;
    border-radius: 0 12px 12px 0;
    background: #f8fafc;
    color: #334155;
    font-style: italic;
}

.legal-content .ybe-divider {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.legal-content .ybe-paragraph a,
.legal-content .ybe-list a,
.legal-content .ybe-quote a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content .ybe-paragraph a:hover,
.legal-content .ybe-list a:hover,
.legal-content .ybe-quote a:hover {
    color: #1d4ed8;
}

.legal-content .ybe-paragraph code,
.legal-content .ybe-list code,
.legal-content .ybe-quote code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.legal-content .ybe-code {
    overflow: hidden;
    margin: 24px 0;
    border: 1px solid #232833;
    border-radius: 18px;
    background: #0d1117;
    color: #e5e7eb;
}

.legal-content .ybe-code__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #232833;
    background: #11151c;
}

.legal-content .ybe-code__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.legal-content .ybe-code__file {
    overflow: hidden;
    color: #d1d5db;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legal-content .ybe-code__lang {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 9px;
    background: #20242d;
    color: #d1d5db;
    font-size: 13px;
    text-transform: uppercase;
}

.legal-content .ybe-code__copy {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.legal-content .ybe-code__pre {
    margin: 0;
    padding: 20px 18px;
    overflow: auto;
    background: #0d1117;
    color: #e5e7eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    line-height: 1.72;
    tab-size: 4;
}

.legal-content .ybe-table {
    margin: 24px 0;
}

.legal-content .ybe-table__scroll {
    overflow-x: auto;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    background: #ffffff;
}

.legal-content .ybe-table__table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.55;
}

.legal-content .ybe-table__table th,
.legal-content .ybe-table__table td {
    padding: 14px 16px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.legal-content .ybe-table__table th:last-child,
.legal-content .ybe-table__table td:last-child {
    border-right: 0;
}

.legal-content .ybe-table__table tbody tr:last-child td,
.legal-content .ybe-table__table tbody tr:last-child th {
    border-bottom: 0;
}

.legal-content .ybe-table__table thead th,
.legal-content .ybe-table__table tbody th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
}

.legal-content .ybe-table--striped tbody tr:nth-child(even) td,
.legal-content .ybe-table--striped tbody tr:nth-child(even) th {
    background: #fbfdff;
}

.legal-content .ybe-info-card {
    display: grid;
    gap: 18px;
    margin: 32px 0;
    padding: 28px 34px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.legal-content .ybe-info-card__eyebrow {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.legal-content .ybe-info-card__title {
    margin: 0;
    color: #111827;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.15;
}

.legal-content .ybe-info-card__text {
    color: #2f3542;
    font-size: 18px;
    line-height: 1.6;
}

.legal-content .ybe-info-card__numbered-list,
.legal-content .ybe-info-card__bullet-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-content .ybe-info-card__numbered-list {
    counter-reset: ybe-info-step;
}

.legal-content .ybe-info-card__numbered-list > li,
.legal-content .ybe-info-card__bullet-list > li {
    position: relative;
    color: #2f3542;
    font-size: 18px;
    line-height: 1.55;
}

.legal-content .ybe-info-card__numbered-list > li {
    counter-increment: ybe-info-step;
    padding-left: 74px;
}

.legal-content .ybe-info-card__numbered-list > li::before {
    content: counter(ybe-info-step);
    position: absolute;
    left: 0;
    top: -4px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #030712;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.legal-content .ybe-pro-tips {
    padding: 38px 46px;
    background: #090d13;
    color: #ffffff;
    border-color: #090d13;
}

.legal-content .ybe-pro-tips .ybe-info-card__title {
    color: #ffffff;
}

.legal-content .ybe-info-card__bullet-list > li {
    padding-left: 38px;
    color: #d1d5db;
}

.legal-content .ybe-info-card__bullet-list > li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.68em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f4b400;
    box-shadow: 0 0 0 5px rgba(244, 180, 0, 0.12);
}

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

.legal-content > :last-child {
    margin-bottom: 0;
}

.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content blockquote,
.legal-content table {
    margin-bottom: 16px;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
    margin: 28px 0 12px;
    color: #111827;
    line-height: 1.25;
}

.legal-content a {
    color: #2563eb;
}

@media (max-width: 640px) {
    .legal-content .ybe-info-card,
    .legal-content .ybe-pro-tips {
        padding: 22px 18px;
    }

    .legal-content .ybe-info-card__numbered-list > li {
        padding-left: 58px;
    }
}
