.legal-page { background: #fff8ec; }
.legal-header { position: relative; }
.legal-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.legal-back { color: #5f5148; font: 600 13px/1.4 Montserrat,Arial,sans-serif; transition: color .2s; }
.legal-back:hover, .legal-back:focus-visible { color: var(--red); }
.legal-back span { color: var(--red); }
.legal-main { max-width: 1050px; padding-block: 75px 100px; }
.legal-kicker { margin: 0 0 20px; color: var(--red); font: 700 11px/1.5 Montserrat,Arial,sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.legal-main h1 { max-width: 920px; margin: 0 0 22px; font-size: clamp(36px,5vw,63px); line-height: 1.12; }
.legal-lead { max-width: 760px; margin: 0 0 39px; color: #64584f; font-size: 18px; line-height: 1.7; }
.legal-paper { padding: 18px clamp(24px,5vw,64px) 25px; border: 1px solid #eaded0; border-radius: 28px; background: white; box-shadow: 0 18px 42px rgba(53,35,19,.055); }
.legal-paper section { padding: 28px 0; border-bottom: 1px solid #eee4da; }
.legal-paper section:last-child { border-bottom: 0; }
.legal-paper h2 { margin: 0 0 14px; font-size: clamp(22px,2.6vw,29px); line-height: 1.25; }
.legal-paper h3 { margin: 28px 0 14px; font-size: 20px; line-height: 1.4; }
.legal-paper h3:first-child { margin-top: 0; }
.processing-details th { width: 180px; min-width: 150px; }
.processing-details td { min-width: 0 !important; }
.legal-paper p, .legal-paper li { color: #4f4842; font-size: 16px; line-height: 1.8; }
.legal-paper p { margin: 0 0 13px; }
.legal-paper p:last-child { margin-bottom: 0; }
.legal-paper ul { margin: 0 0 13px; padding-left: 23px; }
.legal-paper li + li { margin-top: 10px; }
.legal-table-wrap { max-width: 100%; margin: 0 0 18px; overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.legal-table th, .legal-table td { padding: 13px 12px; border: 1px solid #eaded0; text-align: left; vertical-align: top; }
.legal-table th { background: #fff7e9; font: 700 13px/1.4 Montserrat,Arial,sans-serif; }
.legal-table td { color: #4f4842; }
.legal-table td:first-child { min-width: 160px; }
.legal-table code { overflow-wrap: anywhere; }
.cookie-settings-form { display: grid; gap: 10px; margin: 20px 0 23px; }
.cookie-settings-form label { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #eaded0; border-radius: 13px; cursor: pointer; }
.cookie-settings-form label:has(input:disabled) { background: #fffaf0; cursor: default; }
.cookie-settings-form input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.cookie-settings-form label span { display: grid; gap: 2px; }
.cookie-settings-form small { color: #756960; font-size: 12px; }
.cookie-settings-form .button { justify-self: start; margin-top: 6px; }
.cookie-settings-status { min-height: 1.7em; margin: 0 !important; font-size: 13px !important; }
.legal-paper a { color: #c8191c; text-decoration: underline; text-underline-offset: 3px; }
.legal-paper a:hover, .legal-paper a:focus-visible { color: #8f0e12; }
.legal-footer { background: #1c1715; color: #c2b3a9; }
.legal-footer .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-block: 28px; font: 400 12px/1.7 Montserrat,Arial,sans-serif; }
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 23px; }
.legal-footer a:hover, .legal-footer a:focus-visible, .legal-footer [aria-current="page"] { color: white; }
@media (max-width: 760px) {
  .legal-main { padding-block: 50px 70px; }
  .legal-main h1 { font-size: 38px; }
  .legal-lead { font-size: 16px; }
  .legal-paper { padding: 7px 22px 15px; border-radius: 20px; }
  .legal-paper p, .legal-paper li { font-size: 15px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; min-width: 0; }
  .legal-table thead { display: none; }
  .legal-table tr { margin-bottom: 12px; overflow: hidden; border: 1px solid #eaded0; border-radius: 13px; }
  .legal-table tr:last-child { margin-bottom: 0; }
  .legal-table td { border: 0; padding: 11px 13px; }
  .legal-table td + td { border-top: 1px solid #eee4da; }
  .processing-details th, .processing-details td { display: block; width: 100%; min-width: 0; }
  .processing-details th { border: 0; padding: 11px 13px; }
  .legal-table td::before { display: block; margin-bottom: 4px; color: #9c302b; font: 700 10px/1.4 Montserrat,Arial,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
  .privacy-table td:nth-child(1)::before { content: 'Цель'; }
  .privacy-table td:nth-child(2)::before { content: 'Данные'; }
  .privacy-table td:nth-child(3)::before { content: 'Основание'; }
  .cookie-table td:nth-child(1)::before { content: 'Категория'; }
  .cookie-table td:nth-child(2)::before { content: 'Назначение и сервис'; }
  .cookie-table td:nth-child(3)::before { content: 'Примеры и срок'; }
  .legal-footer .wrap { flex-direction: column; }
  .legal-footer nav { justify-content: flex-start; }
}
@media (max-width: 420px) { .legal-back { max-width: 115px; text-align: right; font-size: 11px; } }

.legal-dialog { width: min(920px, calc(100% - 32px)); max-height: 90dvh; padding: 18px; border: 1px solid #eaded0; border-radius: 20px; background: #fff8ec; color: #241b17; }
.legal-dialog::backdrop { background: rgb(20 15 12 / 60%); }
.legal-dialog-close { display: block; margin: 0 0 14px auto; padding: 10px 16px; border: 1px solid #d9cbbd; border-radius: 10px; background: white; cursor: pointer; }
.legal-dialog iframe { display: block; width: 100%; height: 70dvh; border: 0; }
.cookie-dialog { max-width: 600px; padding: 24px; }
.cookie-dialog h2 { font-size: 28px; }
.cookie-dialog p { line-height: 1.6; }
.cookie-dialog a { color: #bc181a; text-decoration: underline; }

.embedded-legal .legal-header, .embedded-legal .legal-footer { display: none; }
.embedded-legal .legal-main { padding-block: 20px; }
