.cookie-banner,
.cookie-dialog {
  color: #07182c;
  background: #fff;
  font-family: Arial, sans-serif;
}

.cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 22px;
  bottom: 22px;
  left: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(7, 24, 44, .22);
}

.cookie-banner strong,
.cookie-dialog h2 { font-weight: 700; }
.cookie-banner p { max-width: 780px; margin: 6px 0 0; color: #5b6b7d; font-size: 14px; line-height: 1.55; }
.cookie-banner a,
.cookie-dialog a,
.cookie-settings-link { color: #0c79d8; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions,
.cookie-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.cookie-primary,
.cookie-secondary,
.cookie-settings-link { min-height: 42px; padding: 0 15px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cookie-primary { border: 1px solid #0c79d8; color: #fff; background: #0c79d8; }
.cookie-secondary { border: 1px solid #cdd9e3; color: #26394c; background: #f5f8fa; }
.cookie-settings-link { min-height: auto; padding: 0; border: 0; color: inherit; background: transparent; font-weight: inherit; text-decoration: none; }

.cookie-overlay {
  position: fixed;
  z-index: 10001;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(7, 24, 44, .58);
}

.cookie-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
}
.cookie-dialog h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.cookie-dialog > p { margin: 10px 0 24px; color: #5b6b7d; line-height: 1.55; }
.cookie-close { position: absolute; top: 13px; right: 15px; width: 38px; height: 38px; border: 0; color: #526477; background: transparent; font-size: 28px; cursor: pointer; }
.cookie-option { padding: 18px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border-top: 1px solid #dce5ed; }
.cookie-option strong { display: block; }
.cookie-option p { margin: 6px 0 0; color: #5b6b7d; font-size: 14px; line-height: 1.45; }
.cookie-option > span { color: #2a7a51; font-size: 12px; font-weight: 700; }
.cookie-option input { width: 22px; height: 22px; accent-color: #0c79d8; }
.cookie-dialog-actions { margin-top: 24px; justify-content: space-between; }

.legal-page { width: min(900px, calc(100% - 40px)); min-height: 75vh; margin: 0 auto; padding: 72px 0 100px; }
.legal-page .legal-back { color: #0c79d8; font-size: 14px; }
.legal-page h1 { margin: 35px 0 18px; font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -.055em; }
.legal-page .legal-lead { max-width: 760px; color: #5b6b7d; font-size: 18px; line-height: 1.65; }
.legal-page section { margin-top: 48px; padding-top: 30px; border-top: 1px solid #dce5ed; }
.legal-page h2 { margin: 0 0 12px; font-size: 27px; letter-spacing: -.03em; }
.legal-page p,
.legal-page li { color: #44576b; line-height: 1.7; }
.legal-page button { margin-top: 10px; }

@media (max-width: 760px) {
  .cookie-banner { right: 12px; bottom: 12px; left: 12px; grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .cookie-actions { justify-content: stretch; flex-wrap: wrap; }
  .cookie-actions button { flex: 1 1 auto; }
  .cookie-dialog { padding: 26px 20px; }
  .cookie-dialog-actions { align-items: stretch; flex-direction: column; }
}
