.legal-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.legal-modal.open {
  display: flex;
}

.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.45);
  backdrop-filter: blur(2px);
}

.legal-panel {
  position: relative;
  width: min(920px, 92vw);
  max-height: 86vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-header {
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-header h2 {
  margin: 0;
  font-family: var(--ff-serif);
  font-size: 24px;
}

.legal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f7f7f7;
  color: #111;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-body {
  padding: 18px 24px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #1b1b1b;
  white-space: pre-wrap;
  font-family: var(--ff-sans);
}

.modal-open {
  overflow: hidden;
}

.btn {
  flex: 1;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 100px;
  font-size: 22px;
  font-weight: 500;
  font-family: var(--ff-sans);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  color: #fff;
}

.btn-primary:hover {
  background: #00a37a;
  box-shadow: 0 4px 12px rgba(0, 183, 137, 0.3);
}

.btn-secondary {
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-secondary:hover {
  background: rgba(0, 183, 137, 0.08);
}

.btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
