.site-legal-dialog {
  width: min(calc(100vw - 32px), 640px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-legal-dialog::backdrop {
  background: rgba(58, 32, 8, 0.34);
  backdrop-filter: blur(2px);
}

.site-legal-dialog__panel {
  position: relative;
  padding: 24px 24px 20px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 24px 56px rgba(42, 24, 8, 0.18);
}

.site-legal-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgba(90, 51, 15, 0.72);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.site-legal-dialog__close:hover,
.site-legal-dialog__close:focus,
.site-legal-dialog__close:focus-visible {
  background: none;
  border: 0;
  color: rgba(90, 51, 15, 0.92);
  outline: none;
  box-shadow: none;
}

.site-legal-dialog__title {
  margin: 0 36px 16px 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.site-legal-dialog__body {
  min-height: 120px;
  max-height: min(62vh, 520px);
  margin: 0 0 20px;
  padding-right: 4px;
  overflow-y: auto;
  color: rgba(90, 51, 15, 0.68);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

.site-legal-dialog__confirm {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb66f, #ff9830);
  color: #fff8ef;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 152, 48, 0.24);
}

.site-legal-article h3 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.site-legal-article h3:first-of-type {
  margin-top: 0;
}

.site-legal-article p,
.site-legal-article ul {
  margin: 0 0 12px;
}

.site-legal-article ul {
  padding-left: 1.25em;
}

.site-legal-article li + li {
  margin-top: 6px;
}

.site-legal-article a {
  color: #c86a12;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-legal-meta {
  margin-bottom: 16px !important;
  font-size: 13px;
  font-weight: 700;
  color: rgba(90, 51, 15, 0.52);
}

.site-legal-loading,
.site-legal-error {
  margin: 0;
}
