.policy-consent {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #f8fafc;
  color: #52627b;
}

.policy-consent__intro {
  margin: 0 0 12px;
  color: #52627b;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.policy-consent__documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.policy-document {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  color: #21104f;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.policy-document:hover,
.policy-document:focus-visible {
  border-color: #06ad6b;
  box-shadow: 0 8px 22px rgba(33, 16, 79, .1);
  outline: none;
  transform: translateY(-1px);
}

.policy-document.is-read {
  border-color: #91dfb9;
  background: #f0fdf6;
}

.policy-document__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eaf9f1;
  color: #078b59;
  font-size: 16px;
  font-weight: 900;
}

.policy-document__copy { min-width: 0; }
.policy-document__copy strong,
.policy-document__copy small { display: block; }
.policy-document__copy strong { font-size: 12.5px; line-height: 1.35; }
.policy-document__copy small { margin-top: 2px; color: #74829a; font-size: 11px; }
.policy-document.is-read .policy-document__copy small { color: #067647; font-weight: 800; }
.policy-document__action { color: #078b59; font-size: 12px; font-weight: 900; }

.policy-consent__agreement {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: #52627b;
  font-size: 12.5px;
  line-height: 1.5;
}

.policy-consent__agreement.is-disabled { opacity: .58; }
.policy-consent .policy-consent__agreement input[type="checkbox"] {
  width: 18px !important;
  max-width: 18px !important;
  min-width: 18px !important;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #06ad6b;
  appearance: auto;
}

.policy-consent__agreement > span {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  overflow-wrap: anywhere;
}

.policy-consent__agreement a { color: #21104f; font-weight: 850; }
.policy-consent__status { margin: 8px 0 0 28px; color: #74829a; font-size: 11.5px; }
.policy-consent__noscript { margin: 10px 0 0; color: #b42318; font-size: 12px; font-weight: 700; }

.policy-modal[hidden] { display: none !important; }
.policy-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; }
.policy-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 16, 31, .72); backdrop-filter: blur(3px); }
.policy-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  height: min(780px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 18, 38, .38);
}

.policy-modal__header,
.policy-modal__footer { padding: 18px 22px; background: #fff; }
.policy-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e3e9f2; }
.policy-modal__header p { margin: 0 0 3px; color: #77859b; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.policy-modal__header h3 { margin: 0; color: #21104f; font-size: 20px; }
.policy-modal__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f4f8; color: #21104f; cursor: pointer; font-size: 26px; line-height: 1; }
.policy-modal__frame { width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }
.policy-modal__loading { position: absolute; inset: 76px 0 86px; display: grid; place-items: center; background: #f8fafc; color: #65758f; font-size: 13px; font-weight: 750; pointer-events: none; }
.policy-modal__loading.is-hidden { display: none; }
.policy-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #e3e9f2; }
.policy-modal__footer p { margin: 0; color: #65758f; font-size: 12px; line-height: 1.4; }
.policy-modal__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.policy-modal__actions a { color: #21104f; font-size: 12px; font-weight: 850; }
.policy-modal__confirm { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #06ad6b; color: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 900; }
.policy-modal__confirm:disabled { background: #c7d2df; cursor: not-allowed; }
body.policy-modal-open { overflow: hidden; }

button.primary-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 720px) {
  .policy-consent { padding: 14px; }
  .policy-consent__documents { grid-template-columns: 1fr; }
  .policy-consent__agreement {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }
  .policy-consent .policy-consent__agreement input[type="checkbox"] {
    width: 20px !important;
    max-width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
  }
  .policy-consent__status { margin-left: 30px; }
  .policy-modal { padding: 0; }
  .policy-modal__dialog { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .policy-modal__header { padding: 14px 16px; }
  .policy-modal__footer { align-items: stretch; flex-direction: column; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .policy-modal__actions { justify-content: space-between; }
  .policy-modal__confirm { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .policy-document { transition: none; }
}
