/* Colors and legal dialog shared by all pages */
:root {
  --lime: #c5d12d;
  --green: #007e41;
  --green-dark: #00663a;
  --green-light: #1cb14b;
  --mint: #e9fff3;
  --ink: #010102;
}

/* --- Legal text dialog --- */
.legal-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  padding: 28px;
  border: none;
  border-radius: 20px;
  color: var(--ink);
  font-family: "Dosis", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.legal-dialog::backdrop {
  background: rgba(0, 60, 30, 0.45);
}

.legal-dialog h2 {
  margin: 0 40px 12px 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--green);
}

.legal-dialog p {
  margin: 0 0 12px;
}

.legal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #eef3d0;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
