/* Scoped legal-page, support and consent styles; main website layout is unchanged. */
#youcan-cookie-banner[hidden] { display: none !important; }
#youcan-cookie-banner {
  position: fixed; z-index: 1100; bottom: 16px; left: 16px; right: 16px;
  max-width: 920px; margin: 0 auto; padding: 20px 24px; box-sizing: border-box;
  background: #172338; color: #fff; border: 1px solid #465267; border-radius: 14px;
  box-shadow: 0 8px 32px #0003; font: 16px/1.55 system-ui, -apple-system, sans-serif;
  max-height: 65vh; overflow-y: auto;
}
#youcan-cookie-banner h2 { color: #fff; font: 600 20px/1.3 system-ui, sans-serif; margin: 0 0 8px; }
#youcan-cookie-banner p { color: #fff; font-size: 15px; margin: 0 0 12px; }
#youcan-cookie-banner a { color: #fff; text-decoration: underline; }
.youcan-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#youcan-cookie-banner .youcan-cookie-choice {
  appearance: none; flex: 1 1 180px; min-height: 44px; padding: 10px 18px;
  color: #fff; border: 1px solid #f75026; background: #172338;
  font: 600 15px/1.4 system-ui, sans-serif; border-radius: 8px; cursor: pointer;
}
#youcan-cookie-banner .youcan-cookie-choice:hover { background: #33415a; }
[data-youcan-consent]:focus-visible, .youcan-legal-page a:focus-visible { outline: 3px solid #f75026; outline-offset: 4px; }
#youcan-cookie-status:empty { display: none; }
#youcan-cookie-status { margin-top: 10px !important; }
.youcan-cookie-settings { color: inherit; font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
footer .youcan-cookie-settings { color: #c7c7cc; margin-left: 20px; }
.youcan-policy-content { overflow-wrap: anywhere; }
.youcan-policy-content section { margin: 28px 0; }
.youcan-policy-content h3 { font-size: 21px; line-height: 1.35; margin: 0 0 12px; }
.youcan-policy-content p, .youcan-policy-content li { font-size: 16px; line-height: 1.65; }
.youcan-policy-content ul { padding-left: 24px; }
.youcan-policy-content a { text-decoration: underline; }
.youcan-policy-content .youcan-policy-intro { margin-bottom: 24px; }
.youcan-policy-modal-link { display: inline-block; margin: 0 0 20px; }
#privacy_policy .btn_close, #modal_terms .btn_close {
  color: #172338; background: #f2f2f7; border: 1px solid #d8dde5;
  width: auto; min-width: 72px; height: 44px; right: 24px; top: 24px;
  padding: 8px 16px; border-radius: 8px; font-size: 16px;
}
#privacy_policy .btn_close:hover, #modal_terms .btn_close:hover { color: #172338; background: #e2e6ec; }
#privacy_policy .btn_close:focus-visible, #modal_terms .btn_close:focus-visible { outline: 3px solid #f75026; outline-offset: 3px; }
.youcan-legal-page { margin: 0; color: #172338; background: #f5f6f8; font: 17px/1.7 system-ui, -apple-system, sans-serif; }
.youcan-legal-shell { max-width: 980px; margin: 0 auto; padding: 28px 24px 80px; }
.youcan-legal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #d8dde5; }
.youcan-legal-header img { max-width: 180px; height: 40px; width: auto; }
.youcan-legal-header nav { display: flex; flex-wrap: wrap; gap: 16px; }
.youcan-legal-page a { color: #b72c10; }
.youcan-legal-page h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.2; margin: 36px 0 24px; }
.youcan-legal-page h2 { font-size: 23px; line-height: 1.4; }
.youcan-legal-page .youcan-policy-content h3 { margin-top: 36px; }
.youcan-legal-page .youcan-policy-content { background: #fff; padding: 28px 32px; border: 1px solid #e2e6ec; border-radius: 12px; }
.youcan-legal-toc { padding: 20px 0; }
.youcan-legal-toc ol { margin: 0; padding-left: 24px; }
.youcan-legal-toc a { display: inline-block; padding: 3px 0; }
.youcan-legal-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid #d8dde5; }
.youcan-noscript { padding: 12px 20px; margin: 12px; background: #f2f2f7; color: #172338; }
#modal_support .modal-dialog { max-width: 760px; }
#modal_support .youcan-support {
  padding: 0; overflow: hidden; color: #172338; background: #fff;
  border: 1px solid #e2e6ec; border-radius: 18px; box-shadow: 0 16px 60px #17233826;
  max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px);
}
#modal_support .youcan-support-toolbar {
  display: flex; flex-shrink: 0; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 24px; background: #fff; border-bottom: 1px solid #e2e6ec;
}
#modal_support .youcan-support-brand { color: #bf3412; font-size: 16px; font-weight: 700; }
#modal_support .btn_close {
  position: static; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-width: 96px; height: 44px; padding: 8px 14px; border-radius: 10px;
  color: #bf3412; background: #fff0e9; border: 1px solid #f8c5b5;
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.4;
}
#modal_support .btn_close span { font-size: 24px; line-height: 1; }
#modal_support .btn_close:hover { color: #a72b0d; background: #ffe1d4; }
#modal_support .btn_close:focus-visible, #modal_support a:focus-visible { outline: 3px solid #f75026; outline-offset: 3px; }
#modal_support .youcan-support-body { padding: 28px; overflow-y: auto; overscroll-behavior: contain; }
#modal_support h2 { color: #172338; font-size: 30px; line-height: 1.25; text-align: left; margin: 0 0 14px; }
#modal_support p { color: #465267; font-size: 16px; line-height: 1.65; margin: 0; }
#modal_support .youcan-support-intro { max-width: 540px; margin-bottom: 24px; }
#modal_support .youcan-support-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#modal_support .youcan-support-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid #e2e6ec; border-radius: 12px; background: #f5f6f8; }
#modal_support h3 { color: #172338; font-size: 21px; line-height: 1.35; margin: 0 0 10px; }
#modal_support .youcan-support-card p { flex-grow: 1; margin-bottom: 20px; }
#modal_support .youcan-support-action {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 10px 12px; border: 1px solid #d8dde5; border-radius: 8px;
  background: #fff; color: #b72c10; font-size: 16px; font-weight: 500; line-height: 1.4;
  text-decoration: none; overflow-wrap: anywhere;
}
#modal_support .youcan-support-action:hover { color: #172338; background: #e2e6ec; text-decoration: underline; }
#modal_support .youcan-support-note { margin-top: 20px; font-size: 14px; }
@media (max-width: 600px) {
  #modal_support .modal-dialog { margin: 12px; }
  #modal_support .youcan-support { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  #modal_support .youcan-support-toolbar { padding: 12px 16px; }
  #modal_support .youcan-support-body { padding: 22px 18px; }
  #modal_support h2 { font-size: 26px; }
  #modal_support .youcan-support-contacts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #modal_support .youcan-support-card { padding: 18px; }
  #privacy_policy .btn_close, #modal_terms .btn_close { right: 12px; top: 12px; }
  #youcan-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  #youcan-cookie-banner .youcan-cookie-choice { flex-basis: 120px; padding: 10px; }
  .youcan-legal-shell { padding: 20px 16px 70px; }
  .youcan-legal-header { align-items: flex-start; flex-direction: column; }
  .youcan-legal-page .youcan-policy-content { padding: 18px; }
  footer .youcan-cookie-settings { margin: 12px 0 0; }
}
