.privacy-banner,
.privacy-modal,
.privacy-pill {
  font-family: "Times New Roman", Times, serif;
  color: #111827;
}

.privacy-banner[hidden],
.privacy-modal[hidden] {
  display: none !important;
}

.privacy-pill {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #155e75;
  border-radius: 999px;
  background: #ffffff;
  color: #155e75;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.privacy-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(780px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22);
}

.privacy-banner h2,
.privacy-modal h2,
.privacy-modal h3 {
  margin: 0;
  font-family: "Bodoni 72", "Bodoni 72 Smallcaps", "Bodoni MT", "Bodoni 11", Didot, "Didot LT STD", "Times New Roman", serif;
  letter-spacing: 0;
}

.privacy-banner h2 {
  margin-bottom: 6px;
  font-size: 1.14rem;
}

.privacy-banner p,
.privacy-modal p,
.privacy-modal li {
  color: #4b5563;
  line-height: 1.5;
}

.privacy-banner p {
  margin: 0;
  font-size: 0.95rem;
}

.privacy-banner a,
.privacy-modal a {
  color: #155e75;
  font-weight: 700;
}

.privacy-banner .privacy-inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: #155e75;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.privacy-banner .privacy-inline-link:focus {
  outline: 2px solid rgba(21, 94, 117, 0.24);
  outline-offset: 2px;
}

.privacy-banner__actions,
.privacy-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.privacy-banner__actions {
  justify-content: flex-end;
}

.privacy-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #155e75;
  border-radius: 6px;
  background: #ffffff;
  color: #155e75;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.privacy-button:hover,
.privacy-button:focus,
.privacy-pill:hover,
.privacy-pill:focus {
  outline: 2px solid rgba(21, 94, 117, 0.24);
  outline-offset: 2px;
}

.privacy-button--primary {
  background: #155e75;
  color: #ffffff;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 17, 31, 0.58);
}

.privacy-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.privacy-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #d7dde6;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.privacy-modal__intro {
  max-width: 760px;
  margin: 8px 44px 16px 0;
}

.privacy-choice-grid,
.privacy-legal-grid {
  display: grid;
  gap: 10px;
}

.privacy-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.privacy-choice {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #f8fafc;
}

.privacy-choice label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #111827;
  font-weight: 750;
}

.privacy-choice input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #155e75;
}

.privacy-choice p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.privacy-legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.privacy-legal-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #ffffff;
}

.privacy-legal-block h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.privacy-legal-block p,
.privacy-legal-block ul {
  margin: 0;
}

.privacy-legal-block ul {
  padding-left: 18px;
}

.privacy-legal-block li + li {
  margin-top: 6px;
}

@media (max-width: 760px) {
  .privacy-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .privacy-banner__actions,
  .privacy-modal__actions,
  .privacy-button {
    width: 100%;
  }

  .privacy-button {
    justify-content: center;
  }

  .privacy-choice-grid,
  .privacy-legal-grid {
    grid-template-columns: 1fr;
  }

  .privacy-modal {
    padding: 10px;
  }

  .privacy-modal__panel {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }
}
