.platform-legal-doc-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.platform-legal-doc-modal[hidden] {
  display: none !important;
}

.platform-legal-doc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.platform-legal-doc-modal__dialog {
  position: relative;
  width: min(40rem, 100%);
  max-height: min(85vh, 42rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  color: #111;
}

.platform-legal-doc-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.platform-legal-doc-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.platform-legal-doc-modal__close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #111;
  opacity: 0.55;
}

.platform-legal-doc-modal__body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333;
}

.platform-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: #fff;
  border-top: 1px solid #111;
  padding: 0.85rem 0;
  color: #111;
}

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

.platform-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.platform-cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #333;
}

.platform-cookie-banner__link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.platform-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-cookie-banner__accept {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.platform-cookie-banner__accept:hover {
  background: #333;
}

.platform-cookie-banner__reject {
  padding: 0.5rem 1.25rem;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.platform-cookie-banner__reject:hover {
  background: rgba(0, 0, 0, 0.04);
}

.platform-legal-consents {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

@media (min-width: 1024px) {
  .platform-legal-consents {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
}

.platform-legal-consents__item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.45;
  cursor: pointer;
}

.platform-legal-consents__item input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.platform-legal-consents__item.is-error {
  color: #b91c1c;
}

.platform-legal-consents__doc-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
}

.platform-legal-consents__error {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #b91c1c;
}