
.km-legal{max-width:900px;margin:0 auto;padding:36px 24px;color:#242627;font:17px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;overflow-wrap:anywhere}
.km-legal h1{font-size:clamp(28px,4vw,42px);line-height:1.2;margin:0 0 24px}.km-legal h2{font-size:25px;line-height:1.3;margin:36px 0 16px}.km-legal h3{font-size:21px;line-height:1.4}.km-legal p,.km-legal ul,.km-legal ol{margin:0 0 18px}.km-legal li{margin:7px 0}.km-legal a{color:#8d2131;text-decoration:underline;text-underline-offset:3px}.km-legal-nav{display:flex;flex-wrap:wrap;gap:12px 22px;padding:18px 0 26px;border-bottom:1px solid #ddd;margin-bottom:30px;font-size:15px}.km-legal-nav a{min-height:24px}.km-legal a:focus-visible,[data-km-consent-open]:focus-visible{outline:3px solid #a12632;outline-offset:4px}
[data-km-consent-open]{font:inherit;line-height:1.5;color:inherit;background:transparent;border:0;text-align:left;padding:6px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;min-height:36px}
.km-legal-shell{margin:0;background:#fff}.km-legal-shell>header,.km-legal-shell>footer{max-width:1150px;margin:auto;padding:22px 24px;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.km-legal-shell>header{border-bottom:1px solid #ddd}.km-legal-shell>footer{border-top:1px solid #ddd}.km-legal-shell>header a{color:inherit}.km-legal-shell header img{width:126px;height:54px;object-fit:contain}.km-legal-shell .km-legal{min-height:55vh}
@media(max-width:480px){.km-legal{padding:26px 18px;font-size:16px}.km-legal h2{font-size:23px}.km-legal-nav{gap:10px 16px}.km-legal-shell>header,.km-legal-shell>footer{padding:18px}}
@media print{.km-legal{max-width:none;padding:0;color:#000;font-size:11pt}.km-legal-nav,.km-legal-shell>header,.km-legal-shell>footer,[data-km-consent-open],.km-consent{display:none!important}.km-legal h1{font-size:20pt}.km-legal h2{font-size:15pt;break-after:avoid}.km-legal a{color:#000}}

/* Footer documents: one readable, quiet component across the three sites. */
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) {
  box-sizing: border-box; display: grid; grid-template-columns: 150px minmax(0,1fr);
  align-items: center; justify-content: normal; gap: 16px 28px;
  width: 100%; max-width: none; margin: 0; padding: 28px max(24px,calc((100% - 1152px)/2));
  border-top: 1px solid #e1e5e8; background: #fff; color: #53616c;
  font-size: 14px; line-height: 1.6; text-align: left;
}
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) > img { width: 150px; height: 64px; object-fit: contain; object-position: left center; }
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) .km-footer-identity { min-width: 0; font: inherit; }
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) .km-footer-identity p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: inherit; }
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) nav.km-footer-documents {
  box-sizing: border-box; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  grid-column: 1 / -1; align-items: start; justify-content: normal; width: 100%;
  gap: 0 28px; padding: 12px 0 0; margin: 0; border-top: 1px solid #e1e5e8; order: initial;
}
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) nav.km-footer-documents > :is(a,button),
html.km-store .km-footer nav[aria-label="Документы"] > :is(a,button) {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: flex-start;
  min-width: 0; min-height: 44px; width: auto; max-width: 100%; height: auto;
  padding: 8px 0; margin: 0; border: 0; border-radius: 2px; background: transparent; box-shadow: none;
  font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: normal; text-transform: none;
  color: #53616c !important; text-align: left; text-decoration: none; white-space: normal;
  overflow-wrap: anywhere; cursor: pointer; touch-action: manipulation; opacity: 1;
  transition: color .15s ease;
}
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) nav.km-footer-documents > :is(a,button):hover,
html.km-store .km-footer nav[aria-label="Документы"] > :is(a,button):hover {
  color: #253847 !important; text-decoration: underline; text-underline-offset: 4px; background: transparent;
}
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) nav.km-footer-documents > :is(a,button):focus-visible,
html.km-store .km-footer nav[aria-label="Документы"] > :is(a,button):focus-visible {
  outline: 2px solid #53616c; outline-offset: 4px; text-decoration: underline; text-underline-offset: 4px;
}
html.km-store .km-footer nav[aria-label="Документы"] > button::after, html.km-store .km-footer nav[aria-label="Документы"] > button::before { content: none; }
:is(footer.km-footer-refined, #km-sout-footer.km-footer-refined).km-footer-refined--plain { grid-template-columns: minmax(0,1fr); }
footer.doc-foot.km-footer-refined { padding: 24px 0 0; }
@media(max-width:760px) {
  :is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) { grid-template-columns: minmax(0,1fr); padding: 24px; gap: 12px; }
  :is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) nav.km-footer-documents { grid-template-columns: minmax(0,1fr); gap: 0; padding-top: 12px; }
  footer.doc-foot.km-footer-refined { padding: 24px 0 0; }
}
@media(prefers-reduced-motion:reduce) {
  :is(footer.km-footer-refined, #km-sout-footer.km-footer-refined) nav.km-footer-documents > :is(a,button),
  html.km-store .km-footer nav[aria-label="Документы"] > :is(a,button) { transition: none; }
}

/* Preserve one link per row in the store; neutralize legacy Tilda underline. */
html.km-store .km-footer nav[aria-label="Документы"] > :is(a,button) { display: flex; width: 100%; }
#km-sout-footer.km-footer-refined nav.km-footer-documents > a { text-decoration: none !important; }
#km-sout-footer.km-footer-refined nav.km-footer-documents > a:is(:hover,:focus-visible) { text-decoration: underline !important; text-underline-offset: 4px; }
