/* Изолированные страницы: благодарность и юридические документы, Figma v9 */
.legal-page .panel { overflow: visible; }
.legal-hero { min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; justify-content: end; }
.legal-breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 44px; font-size: 12px; color: var(--muted); }
.legal-breadcrumbs a:hover { text-decoration: underline; }
.legal-hero .eyebrow { margin-bottom: 15px; }
.legal-hero h1 { max-width: 970px; font-size: clamp(39px,4.55vw,65px); margin: 0 0 17px; text-wrap: balance; overflow-wrap: anywhere; }
.legal-hero > p { font-size: 12px; margin: 0; }
.legal-main { min-height: 620px; }
.legal-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(245px,.7fr); align-items: start; gap: clamp(24px,5vw,76px); }
.legal-section { padding-bottom: 23px; }
.legal-section h2 { font-size: clamp(20px,2vw,27px); font-weight: 500; line-height: 1.3; letter-spacing: -.04em; margin: 0 0 10px; }
.legal-section p { max-width: 780px; font-size: 13px; line-height: 1.85; margin: 0; overflow-wrap: anywhere; }
.legal-side { background: var(--peach); border-radius: 16px; padding: clamp(22px,3vw,32px); position: sticky; top: 18px; }
.legal-side strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 22px; }
.legal-side a { display: flex; justify-content: space-between; gap: 15px; padding: 13px 12px; font-size: 12px; line-height: 1.6; border-radius: 11px; color: var(--ink); }
.legal-side a[aria-current=page] { background: var(--cream); color: var(--wine); font-weight: 600; }
.legal-side a:hover { background: #fff; }
.legal-warning { border: 1px solid #dcbab1; background: #fff6f2; border-radius: 14px; padding: 20px 25px; margin: 0 0 35px; }
.legal-warning strong { color: #713429; font-size: 13px; }
.legal-warning p { font-size: 12px; margin: 7px 0 0; }
.thanks-panel { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.9fr); align-items: center; gap: clamp(35px,5vw,80px); min-height: 760px; }
.thanks-check { width: 57px; height: 57px; display: grid; place-items: center; background: var(--wine); color: #fff; border-radius: 50%; font-size: 29px; margin-bottom: 32px; }
.thanks-content .eyebrow { margin-bottom: 17px; }
.thanks-content h1 { font-size: clamp(50px,5vw,78px); line-height: 1.08; margin-bottom: 22px; }
.thanks-lead { max-width: 610px; font-size: clamp(14px,1.15vw,16px); line-height: 1.9; margin-bottom: 30px; }
.thanks-steps { display: grid; gap: 13px; margin-bottom: 33px; }
.thanks-step { display: flex; align-items: flex-start; gap: 17px; background: #fff; border: 1px solid var(--border); padding: 19px 23px; border-radius: 14px; }
.thanks-step > span { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 50%; background: var(--wine); color: white; display: grid; place-items: center; font-size: 12px; }
.thanks-step h2 { font-size: 17px; font-weight: 500; margin: 1px 0 5px; letter-spacing: -.035em; }
.thanks-step p { font-size: 12px; margin: 0; line-height: 1.65; }
.thanks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.thanks-blog-link { font-size: 13px; color: var(--wine); font-weight: 600; border-bottom: 1px solid currentColor; padding: 9px 0; }
.thanks-blog-link span { margin-left: 9px; }
.thanks-portrait { margin: 0; align-self: stretch; max-height: 660px; border-radius: 16px; overflow: hidden; }
.thanks-portrait img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width:900px) { .thanks-panel { grid-template-columns: minmax(0,1fr) minmax(0,.7fr); min-height: 0; } .legal-grid { gap: 25px; } }
@media(max-width:700px) { .thanks-panel { display: flex; flex-direction: column-reverse; align-items: stretch; padding: 24px; gap: 28px; } .thanks-portrait { width: 100%; height: clamp(270px,67vw,410px); } .thanks-portrait img { object-position: center 29%; } .thanks-content h1 { font-size: clamp(43px,10vw,60px); } .thanks-check { margin-bottom: 20px; } .thanks-step { padding: 15px; } .thanks-actions { gap: 12px; } .legal-hero { min-height: 0; } .legal-breadcrumbs { margin-bottom: 30px; } .legal-main { min-height: 0; } .legal-grid { display: flex; flex-direction: column; } .legal-sections, .legal-side { width: 100%; } .legal-side { position: static; } .legal-hero h1 { font-size: clamp(32px,8vw,48px); } }

/* Тексты юридических документов из DOCX: абзацы, списки, таблицы. */
.legal-sections { min-width: 0; }
.legal-sections > p { margin: 0 0 20px; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.legal-section p + p, .legal-section p + .legal-bullets, .legal-section .legal-bullets + p,
.legal-section .legal-table-scroll + p, .legal-section p + .legal-table-scroll { margin-top: 14px; }
.legal-section p { margin-bottom: 14px; max-width: none; }
.legal-section h2 { margin-bottom: 17px; }
.legal-section { padding: 0 0 32px; margin: 0 0 26px; border-bottom: 1px solid var(--border); }
.legal-bullets { padding: 0 0 0 22px; margin: 12px 0 18px; }
.legal-bullets li { margin: 0 0 9px; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.legal-section a, .legal-sections > p a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.legal-table-scroll { max-width: 100%; overflow-x: auto; margin: 18px 0 23px; overscroll-behavior-inline: contain; border-radius: 12px; border: 1px solid var(--border); }
.legal-table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.6; }
.legal-table th, .legal-table td { padding: 13px 14px; border: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.legal-table th:first-child, .legal-table td:first-child { border-left: 0; }
.legal-table th:last-child, .legal-table td:last-child { border-right: 0; }
.legal-table thead th { background: var(--peach); font-weight: 650; }
.legal-table tbody tr:nth-child(even) { background: rgba(255, 250, 247, .85); }
.legal-table th { white-space: normal; }
@media(max-width:700px) {
  .legal-section { margin-bottom: 20px; padding-bottom: 22px; }
  .legal-table-scroll { margin: 13px 0 20px; }
  .legal-table { min-width: 620px; }
  .legal-table th, .legal-table td { padding: 11px; }
}
