@import url('/assets/css/legal-pages.css');

.deletion-head p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 760px;
}

.deletion-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(18,34,48,.05);
  padding: 28px;
}

.deletion-card h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  letter-spacing: -.02em;
}

.deletion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.deletion-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 750;
  color: var(--text);
}

.form-field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(21,34,50,.2);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.form-field input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(81,123,150,.12);
}

.hcaptcha-wrap {
  min-height: 78px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#deletion-request-submit {
  justify-self: center;
}

.deletion-button {
  justify-self: start;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.deletion-button:hover,
.deletion-button:focus-visible {
  filter: brightness(.96);
  outline: none;
  box-shadow: 0 0 0 4px rgba(81,123,150,.14);
}

.deletion-button.danger {
  background: #b42318;
}

.deletion-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.notice {
  border-radius: 16px;
  padding: 16px 18px;
  line-height: 1.65;
}

.notice-success {
  border: 1px solid rgba(27,122,75,.22);
  background: rgba(27,122,75,.07);
  color: #145c39;
}

.notice-error {
  border: 1px solid rgba(180,35,24,.2);
  background: rgba(180,35,24,.06);
  color: #8b1d14;
}

.security-card {
  background: rgba(81,123,150,.07);
}

.deletion-state[hidden] {
  display: none !important;
}

.deletion-actions {
  margin-top: 22px;
}

@media (max-width: 700px) {
  .deletion-card { padding: 22px 18px; }
  .deletion-button { width: 100%; justify-self: stretch; }
  #deletion-request-submit { width: auto; max-width: 100%; justify-self: center; }
  .h-captcha { transform-origin: center top; max-width: 100%; }
  body.rtl .h-captcha { transform-origin: center top; }
}
