/* Cookie-баннер и согласия на ПДн */
.cookie-banner {
    position: fixed;
    z-index: 100050;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #111114;
    border-top: 1px solid var(--border, #2a2a30);
    color: #e8e8ea;
}

.cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner__text {
    flex: 1 1 280px;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-light, #b8b8c0);
}

.cookie-banner__text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-banner__btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-banner__btn--accept {
    background: var(--primary, #ff3b3b);
    color: #fff;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #e8e8ea;
    border-color: var(--border, #2a2a30);
}

.footer-legal {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-light, #b8b8c0);
}

.footer-legal a,
.footer-legal__btn {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.pdn-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-light, #b8b8c0);
}

.pdn-agree input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary, #ff3b3b);
}

.pdn-agree a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-doc {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-light, #c8c8d0);
    font-size: 0.98rem;
    line-height: 1.65;
}

.policy-doc h2 {
    margin: 2rem 0 0.75rem;
    color: #fff;
    font-size: 1.25rem;
}

.policy-doc h3 {
    margin: 1.4rem 0 0.5rem;
    color: #fff;
    font-size: 1.05rem;
}

.policy-doc p,
.policy-doc li {
    margin: 0 0 0.75rem;
}

.policy-doc ul {
    padding-left: 1.2rem;
    margin: 0 0 1rem;
}

.policy-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
}

.policy-doc th,
.policy-doc td {
    border: 1px solid var(--border, #2a2a30);
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}

.policy-doc th {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.policy-meta {
    font-size: 0.85rem;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
