.privacy-consent-banner,
.privacy-consent-banner *,
.privacy-policy,
.privacy-policy * {
  box-sizing: border-box;
}

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

.privacy-consent-banner {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  width: calc(100% - 32px);
  max-width: 1100px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #fff;
  color: #374151;
  box-shadow: 0 8px 32px rgba(30, 58, 138, .16);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.privacy-consent-copy {
  flex: 1;
  min-width: 0;
}

.privacy-consent-copy h2 {
  margin: 0 0 8px;
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.privacy-consent-copy p {
  margin: 0 0 8px;
}

.privacy-consent-copy a {
  color: #1e40af;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.privacy-consent-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #1e40af;
  border-radius: 8px;
  background: #1e40af;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.privacy-consent-actions button:hover {
  background: #1e3a8a;
}

.privacy-consent-banner .privacy-consent-note {
  margin: 12px 0 0;
  font-size: 13px;
}

.privacy-consent-note:empty {
  display: none;
}

.privacy-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 20px;
  font-size: 14px;
}

.privacy-footer-links a,
.privacy-footer-links button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #bfdbfe;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-footer-links a:hover,
.privacy-footer-links button:hover {
  color: #fff;
}

.privacy-consent-banner :focus-visible,
.privacy-footer-links :focus-visible,
.privacy-policy main :focus-visible,
.privacy-policy-footer :focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}

.privacy-policy {
  margin: 0;
  background: #f8fafc;
  color: #374151;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

.privacy-policy-top {
  color: #111827;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

.privacy-policy-top [hidden] {
  display: none !important;
}

.privacy-policy main,
.privacy-policy-footer {
  tab-size: 8;
  -webkit-text-size-adjust: auto;
  -webkit-tap-highlight-color: rgba(0, 0, 0, .18);
}

.privacy-policy main {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.privacy-policy main h2 {
  margin: 32px 0 12px;
  color: #1e3a8a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.privacy-policy main p,
.privacy-policy main ul,
.privacy-policy-footer p {
  margin: 0 0 16px;
}

.privacy-policy main ul {
  padding-left: 24px;
  list-style: disc;
}

.privacy-policy main a,
.privacy-policy-footer a {
  color: #1e40af;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.privacy-policy-preferences {
  appearance: auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #1e40af;
  border-radius: 8px;
  background: #fff;
  color: #1e40af;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.privacy-policy-footer {
  padding: 0 24px 32px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 700px) {
  .privacy-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  .privacy-consent-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .privacy-consent-actions button {
    flex: 1 1 150px;
  }

  .privacy-policy main {
    margin: 20px 12px;
    padding: 24px 20px;
  }
}
