/* Юридические документы: типографика и карточка контента */

.lb-public-page--legal {
    background: var(--lb-bg-soft, #f5f9fd);
}

.lb-public-page--contacts {
    background: var(--lb-bg-soft, #f5f9fd);
}

/* ===== Contacts page ===== */
.contacts-page {
    padding-bottom: 48px;
}

.contacts-hero {
    background: linear-gradient(165deg, #e8f4fd 0%, #f5f9fd 55%, #f5f9fd 100%);
    border-bottom: 1px solid rgba(25, 118, 210, 0.08);
    padding: 40px 0 56px;
    margin-bottom: -28px;
}

.contacts-hero__inner {
    max-width: 720px;
}

.contacts-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--lb-text-dark, #263238);
}

.contacts-hero__subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--lb-text-muted, #5a6771);
    max-width: 540px;
}

.contacts-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 960px;
}

.contacts-card {
    background: #fff;
    border: 1px solid #e3edf5;
    border-radius: 16px;
    padding: 24px 26px 28px;
    box-shadow: 0 10px 32px rgba(13, 42, 68, 0.05);
}

.contacts-card--wide {
    grid-column: 1 / -1;
}

.contacts-card__title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6f7d86;
}

.contacts-card__lead {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--lb-text-dark, #263238);
}

.contacts-facts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.contacts-facts li {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--lb-text-muted, #5a6771);
    padding-left: 14px;
    border-left: 3px solid var(--lb-blue-pale, #e3f2fd);
}

.contacts-channel + .contacts-channel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef3f7;
}

.contacts-channel__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8b98a3;
    margin-bottom: 6px;
}

.contacts-channel__value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lb-blue-1, #1976d2) !important;
    text-decoration: none !important;
    word-break: break-word;
}

.contacts-channel__value:hover {
    color: var(--lb-blue-2, #2196f3) !important;
    text-decoration: underline !important;
}

.contacts-channel__value--text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--lb-text-dark, #263238) !important;
}

.contacts-channel__note {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #8b98a3;
}

.contacts-card__mono {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--lb-text-muted, #5a6771);
}

.contacts-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contacts-docs__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--lb-blue-border, #bbedfb);
    background: #f8fbff;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lb-blue-1, #1976d2) !important;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.contacts-docs__link:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    transform: translateY(-1px);
}

.contacts-write__lead {
    margin: -6px 0 22px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--lb-text-muted, #5a6771);
    max-width: 520px;
}

.contacts-write .lb-contact-form {
    max-width: 560px;
}

.contacts-write .lb-contact-form__field span {
    color: #4b5563;
}

.contacts-write .lb-contact-form__field input,
.contacts-write .lb-contact-form__field textarea {
    color: var(--lb-text-dark, #263238);
    background: #fff;
}

@media (max-width: 720px) {
    .contacts-hero {
        padding: 32px 0 44px;
    }

    .contacts-page__grid {
        grid-template-columns: 1fr;
    }
}

.lb-legal-main {
    padding: 28px 0 40px;
    min-height: 40vh;
}

.lb-legal-main__inner {
    max-width: 920px;
}

.legal-card {
    background: #fff;
    border: 1px solid #e3edf5;
    border-radius: 16px;
    padding: 28px 32px 36px;
    box-shadow: 0 12px 40px rgba(13, 42, 68, 0.06);
}

.legal-document__head h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.legal-document__meta {
    margin: 0 0 20px;
    color: var(--lb-text-muted, #6b7280);
    font-size: 14px;
}

.legal-document__body h1 {
    margin-top: 0;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    line-height: 1.25;
}

.legal-document__body h2 {
    margin-top: 26px;
    font-size: 20px;
    line-height: 1.35;
}

.legal-document__body h3 {
    margin-top: 18px;
    font-size: 17px;
}

.legal-document__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.legal-document__body th,
.legal-document__body td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.legal-document__body th {
    background: #f9fafb;
}

.legal-document__body a {
    color: var(--lb-blue-1, #1976d2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-legal-footer {
    margin-top: 0;
    text-align: center;
    padding: 14px 20px 18px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.site-legal-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.site-legal-footer__copy {
    text-align: left;
}

.site-legal-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
}

.site-legal-footer__nav a {
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}

.site-legal-footer__nav a:hover {
    color: #1976d2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-legal-footer__line {
    margin: 0;
    font-size: 13px;
    color: inherit;
    line-height: 1.55;
}

.site-legal-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.main-content .site-legal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
    background: transparent;
}

html[data-theme='dark'] .site-legal-footer {
    border-top-color: #374151;
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme='dark'] .site-legal-footer__inner,
html[data-theme='dark'] .site-legal-footer__copy {
    color: #9ca3af;
}

html[data-theme='dark'] .site-legal-footer__nav a {
    color: #cbd5e1;
}

html[data-theme='dark'] .main-content .site-legal-footer {
    border-top-color: #374151;
    background: transparent;
}

html[data-theme='dark'] .main-content .site-legal-footer__line,
html[data-theme='dark'] .main-content .site-legal-footer a {
    color: #9ca3af;
}

html[data-theme='dark'] .legal-card {
    background: #1f2937;
    border-color: #374151;
}

.guest-notice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.guest-notice-fields {
    min-width: 0;
}

.guest-notice-preview-wrap {
    min-width: 0;
}

@media (min-width: 960px) {
    .guest-notice-grid {
        grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
        gap: 2rem;
    }

    .guest-notice-preview-wrap {
        position: sticky;
        top: 1.25rem;
    }
}

.guest-notice-form {
    display: grid;
    gap: 12px;
    max-width: none;
    margin-bottom: 12px;
}

.guest-notice-form__row label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #4b5563;
}

.guest-notice-form__row input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.guest-notice-print {
    margin-top: 8px;
}

.guest-notice-print-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    max-width: none;
}

.guest-notice-sheet {
    max-width: none;
}

.guest-notice-sheet__body blockquote {
    margin: 0;
    padding: 20px 22px 22px;
    border: 2px solid #1f2937;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    line-height: 1.55;
    color: #111827;
}

.guest-notice-sheet__body blockquote h3 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    line-height: 1.25;
}

.guest-notice-sheet__body blockquote p {
    margin: 0 0 10px;
}

.guest-notice-sheet__body blockquote p:last-child {
    margin-bottom: 0;
}

.guest-notice-qr-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.guest-notice-qr {
    flex: 0 0 auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    line-height: 0;
}

.guest-notice-qr img,
.guest-notice-qr canvas {
    display: block;
    width: 132px !important;
    height: 132px !important;
}

.guest-notice-qr__caption {
    margin: 0;
    flex: 1 1 160px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.guest-notice-qr__caption a {
    color: #1976d2;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 20px 18px 28px;
        border-radius: 12px;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    html,
    body {
        background: #fff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body[data-page='guest-notice'] * {
        visibility: hidden;
    }

    body[data-page='guest-notice'] .guest-notice-sheet,
    body[data-page='guest-notice'] .guest-notice-sheet * {
        visibility: visible;
    }

    body[data-page='guest-notice'] .guest-notice-sheet {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    [data-test-env-banner],
    .lb-header,
    .lb-footer,
    header,
    .sidebar,
    .sidebar-backdrop,
    .main-content .dashboard-section-heading,
    .guest-notice-form,
    .guest-notice-print-hint,
    .guest-notice-fields,
    .no-print,
    .site-legal-footer,
    .cookie-notice,
    #promptAssistantShell,
    .scroll-to-top {
        display: none !important;
    }

    .container,
    .main-content,
    .content-area,
    .lb-legal-main {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .guest-notice-section {
        padding: 0 !important;
        margin: 0 !important;
    }

    .guest-notice-sheet__body blockquote {
        border-width: 2px;
        border-radius: 8px;
        font-size: 11.5pt;
        line-height: 1.45;
        padding: 14mm 12mm;
    }

    .guest-notice-sheet__body blockquote h3 {
        font-size: 16pt;
    }

    .guest-notice-qr-wrap {
        border-top-color: #9ca3af;
    }

    .guest-notice-qr {
        border-color: #374151;
    }
}
