:root {
  --cookie-blue: #149fdd;
  --cookie-blue-dark: #066fa9;
  --cookie-ink: #0b2940;
  --cookie-muted: #597087;
  --cookie-line: #cfe9f7;
  --cookie-soft: #eef9ff;
}

.cookie-banner,
.cookie-preferences {
  font-family: Arial, Helvetica, sans-serif;
}

.cookie-banner[hidden],
.cookie-preferences[hidden] { display: none !important; }

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 12px;
  bottom: 12px;
  left: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--cookie-line);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(7, 41, 64, 0.16);
  color: var(--cookie-ink);
}

.cookie-banner__content {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner h2,
.cookie-preferences h2,
.cookie-preferences h3 { margin: 0; color: var(--cookie-ink); }
.cookie-banner p,
.cookie-preferences p { margin: 4px 0 0; color: var(--cookie-muted); line-height: 1.35; }
.cookie-banner p { margin: 0; font-size: 0.79rem; }
.cookie-banner a,
.cookie-preferences a { color: var(--cookie-blue-dark); font-weight: 700; }

.cookie-actions,
.cookie-preferences__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.cookie-button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--cookie-blue);
  border-radius: 7px;
  background: #ffffff;
  color: var(--cookie-blue-dark);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.cookie-button:hover,
.cookie-button:focus-visible,
.cookie-close:focus-visible { outline: 3px solid rgba(20, 159, 221, 0.25); outline-offset: 2px; }
.cookie-button--primary { background: var(--cookie-blue); color: #ffffff; }

body.cookie-consent-visible { padding-bottom: 72px; }

.cookie-preferences {
  position: fixed;
  z-index: 1010;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 30, 47, 0.62);
}

.cookie-preferences__dialog {
  width: min(650px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--cookie-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(4, 30, 47, 0.28);
}

.cookie-preferences__heading { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.cookie-close { width: 38px; height: 38px; border: 1px solid var(--cookie-line); border-radius: 7px; background: #ffffff; color: var(--cookie-ink); font-size: 1.35rem; line-height: 1; cursor: pointer; }

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid var(--cookie-line);
  border-radius: 7px;
  background: var(--cookie-soft);
}

.cookie-category p { margin-top: 2px; font-size: 0.86rem; line-height: 1.35; }
.cookie-switch { display: inline-flex; gap: 8px; align-items: center; color: var(--cookie-ink); font-size: 0.86rem; font-weight: 800; white-space: nowrap; }
.cookie-switch input { width: 18px; height: 18px; accent-color: var(--cookie-blue); }
.cookie-preferences__actions { margin-top: 13px; }

.policy-page { min-height: 100vh; margin: 0; background: #f6fbff; color: var(--cookie-ink); font-family: Arial, Helvetica, sans-serif; }
.policy-shell { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 52px; }
.policy-header { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.policy-header img { width: 62px; height: 62px; object-fit: contain; }
.policy-header a { color: var(--cookie-blue-dark); font-size: 0.9rem; font-weight: 800; text-decoration: none; }
.policy-header p { margin: 4px 0 0; color: var(--cookie-muted); }

.policy-card { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--cookie-line); border-radius: 8px; background: #ffffff; box-shadow: 0 14px 38px rgba(7, 41, 64, 0.08); }
.policy-card h1 { margin: 0; color: var(--cookie-ink); font-size: clamp(1.75rem, 5vw, 2.5rem); }
.policy-card h2 { margin: 28px 0 8px; color: var(--cookie-blue-dark); font-size: 1.12rem; }
.policy-card p,
.policy-card li { color: var(--cookie-muted); line-height: 1.65; }
.policy-card ul { padding-left: 22px; }
.policy-update,
.policy-note { padding: 12px 14px; border-radius: 7px; }
.policy-update { margin-top: 12px; background: var(--cookie-soft); color: var(--cookie-blue-dark) !important; font-weight: 800; }
.policy-note { border-left: 4px solid var(--cookie-blue); background: #fff9e9; color: #5d4c18 !important; }
.policy-footer { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; }
.policy-footer a,
.policy-footer button { padding: 0; border: 0; background: transparent; color: var(--cookie-blue-dark); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 680px) {
  .cookie-banner { right: 8px; bottom: 8px; left: 8px; padding: 7px 9px; }
  .cookie-banner__content,
  .cookie-category { grid-template-columns: 1fr; }
  .cookie-banner__content { display: flex; gap: 8px; align-items: center; }
  .cookie-banner p { font-size: 0.72rem; line-height: 1.25; }
  .cookie-banner .cookie-button { min-width: 74px; min-height: 34px; padding: 6px 9px; font-size: 0.76rem; white-space: nowrap; }
  .cookie-actions,
  .cookie-preferences__actions { justify-content: stretch; }
  .cookie-actions .cookie-button,
  .cookie-preferences__actions .cookie-button { flex: 1 1 140px; min-height: 40px; padding: 8px 9px; }
  .cookie-switch { justify-content: space-between; }
  .cookie-preferences { padding: 12px; }
  .cookie-preferences__dialog { max-height: calc(100vh - 24px); padding: 14px; }
  .policy-shell { width: min(100% - 24px, 900px); padding-top: 18px; }
  body.cookie-consent-visible { padding-bottom: 64px; }
}
