.legal-checks {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

#modal-calc .legal-checks .form-group {
    margin-bottom: 0;
}

#modal-calc #calcBtn {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

#modal-calc #orderBtn {
    background: var(--primary);
    color: var(--white);
}

.payment-provider a,
.contact-form .form-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-requisites {
    margin-top: 12px;
    line-height: 1.55;
}

.footer-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-consent {
    position: fixed;
    z-index: 1200;
    right: 20px;
    bottom: 20px;
    left: 20px;
    margin-inline: auto;
    width: min(100% - 40px, 840px);
    padding: 18px;
    border: 1px solid rgba(99, 102, 241, .25);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    box-shadow: 0 18px 55px rgba(15, 23, 42, .22);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent p {
    margin: 0;
    line-height: 1.5;
}

.cookie-consent a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.cookie-consent .btn {
    white-space: nowrap;
}

.cookie-consent .btn-primary {
    background: var(--primary);
    color: var(--white);
}

.cookie-consent .btn-secondary {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.legal-page .privacy-container {
    padding-top: 28px;
    padding-bottom: 48px;
}

.legal-page .privacy-container > .header {
    position: static;
}

.legal-home-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.legal-home-link:hover,
.legal-home-link:focus-visible {
    text-decoration: underline;
}

.legal-meta {
    color: var(--gray);
}

.legal-page .section h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--dark);
}

.legal-page .section ol {
    margin: 0 0 16px 24px;
}

.legal-page .section li + li {
    margin-top: 7px;
}

.legal-note {
    padding: 14px 16px;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    background: rgba(99, 102, 241, .08);
}

.legal-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: var(--gray);
    font-size: .92rem;
}

.legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 14px;
}

.legal-footer a {
    color: var(--primary);
}

.robokassa-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d7dbe5;
    border-radius: 8px;
    background: #fff;
    color: #171b34;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 760px) {
    .cookie-consent__content,
    .cookie-consent__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent__content {
        gap: 14px;
    }

    .cookie-consent__actions {
        gap: 8px;
    }

    .cookie-consent .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 14px;
    }

    .legal-page .privacy-container {
        padding-top: 18px;
    }
}
