.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0 0 20px;
  font-size: 13px;
}
.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.form-note a,
.quiz-privacy a,
.legal-content a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.quiz-privacy {
  margin: 12px 0;
  font-size: 14px;
}
.legal-page {
  background: #171918;
  color: #dde1dc;
}
.legal-page footer { padding-inline-end: 4%; }
.legal-home { margin-inline-start: auto; }
.legal-content {
  max-width: 870px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(18px, 5vw, 48px);
}
.legal-content h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.legal-content h2 {
  margin: 28px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0;
}
.legal-content p { margin-top: 12px; }
.legal-content .legal-note {
  border-inline-start: 2px solid var(--orange);
  padding-inline-start: 12px;
  margin-top: 18px;
}
.legal-requisites {
  display: grid;
  gap: 6px;
}
.legal-requisites img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 18px;
  object-fit: contain;
  object-position: left center;
  justify-self: start;
}

.footer-legal button,
.cookie-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.cookie-notice,
.cookie-settings {
  color: #f3f2ed;
  background: #1b2228;
  border: 1px solid #ffffff36;
}
.cookie-notice {
  position: fixed;
  z-index: 12;
  inset-inline-start: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(370px, calc(100% - 82px));
  padding: 14px 32px 14px 14px;
  box-shadow: 0 8px 24px #0005;
  font-size: 14px;
  line-height: 1.4;
}
.cookie-notice a,
.cookie-settings a { text-decoration: underline; text-underline-offset: .2em; }
.cookie-settings {
  width: min(490px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 26px 32px 24px 24px;
}
.cookie-settings::backdrop { background: #000a; }
.cookie-settings h2 { font-size: 29px; }
.cookie-settings p { margin-top: 12px; }
.cookie-close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cookie-actions button {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #ffffff45;
  background: transparent;
  font-size: 14px;
}
.cookie-actions [data-cookie-accept] {
  border-color: var(--orange);
  color: #171918;
  background: var(--orange);
  font-weight: 700;
}
.cookie-status:empty { display: none; }

/* Compact notification, matching the current PW behavior in the FENIX palette. */
.cookie-notice.cookie-notice-simple {
  display: flex; align-items: center; gap: 16px;
  width: min(420px, calc(100% - 32px));
  padding: 12px 14px; font-size: 14px; line-height: 1.45;
}
.cookie-notice-simple[hidden] { display: none !important; }
.cookie-notice-simple p { margin: 0; flex: 1; color: inherit; }
.cookie-notice-simple [data-cookie-notice-ok] {
  flex: none; min-width: 54px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--orange); background: var(--orange); color: #171918;
  font: inherit; font-weight: 700; cursor: pointer;
}
.cookie-settings { padding: 0 24px 24px; overflow: auto; overscroll-behavior: contain; }
.cookie-settings-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px 12px; background: #1b2228; }
.cookie-settings-heading h2 { margin: 0; font-size: 29px; line-height: 1.15; }
.cookie-settings-heading .cookie-close { position: static; flex: 0 0 44px; width: 44px; height: 44px; color: inherit; cursor: pointer; }
.cookie-settings > p { font-size: 15px; line-height: 1.5; }
.cookie-category { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 0; margin-top: 18px; border-block-start: 1px solid #ffffff36; }
.cookie-category + .cookie-category { margin-top: 0; }
.cookie-category h3 { font-size: 18px; line-height: 1.3; }
.cookie-category p { margin: 7px 0 0; font-size: 14px; line-height: 1.5; }
.cookie-category > span { flex: 0 0 90px; font-size: 12px; text-align: right; color: #c8cecf; }
.cookie-analytics-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; flex-shrink: 0; font-size: 14px; cursor: pointer; }
.cookie-analytics-choice input { appearance: auto; display: block; flex: 0 0 21px; width: 21px; height: 21px; margin: 0; padding: 0; accent-color: var(--orange); cursor: pointer; }
.cookie-settings .cookie-actions { display: grid; grid-template-columns: 1fr; margin-top: 20px; gap: 10px; }
.cookie-settings .cookie-actions button { min-height: 44px; padding: 10px 14px; color: inherit; cursor: pointer; }
.cookie-settings [data-cookie-save] { background: var(--orange); border-color: var(--orange); color: #171918 !important; font-weight: 700; }
.cookie-notice button:focus-visible, .cookie-settings button:focus-visible, .cookie-settings input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (hover: hover) {
 .cookie-notice-simple [data-cookie-notice-ok]:hover, .cookie-settings [data-cookie-save]:hover { filter: brightness(1.08); }
 .cookie-settings [data-cookie-reset]:hover { background: #ffffff0c; }
}
@media (max-width: 480px) {
 .cookie-notice.cookie-notice-simple { inset-inline-start: max(16px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); }
 .cookie-settings { padding-inline: 18px; }
 .cookie-settings-heading h2 { font-size: 26px; }
 .cookie-category { gap: 12px; }
 .cookie-category > span { flex-basis: 76px; }
}
