* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -12%, rgba(210, 255, 0, 0.16), transparent 34%),
    linear-gradient(180deg, #071014, #03090d 62%, #02070a);
  color: #f4fbfc;
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  direction: rtl;
}

a {
  color: inherit;
}

.legal-shell {
  width: min(720px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.legal-topbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.legal-back,
.legal-link,
.legal-submit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4fbfc;
  text-decoration: none;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0;
}

.legal-submit {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, #d2ff00, #a8f000);
  color: #001316;
  cursor: pointer;
}

.legal-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(22, 35, 45, 0.9), rgba(12, 20, 27, 0.94));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px;
  margin-bottom: 14px;
}

.legal-kicker {
  color: #d2ff00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-card h1,
.legal-card h2 {
  margin: 8px 0 10px;
  line-height: 1.12;
}

.legal-card h1 {
  font-size: clamp(30px, 7vw, 46px);
}

.legal-card h2 {
  font-size: 20px;
}

.legal-muted,
.legal-card p,
.legal-card li {
  color: #b7d0dc;
  font-size: 15px;
  line-height: 1.75;
}

.legal-card ul {
  margin: 10px 0 0;
  padding: 0 20px 0 0;
}

.legal-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.legal-pill {
  padding: 8px 10px;
  border: 1px solid rgba(210, 255, 0, 0.28);
  border-radius: 999px;
  color: #d2ff00;
  background: rgba(210, 255, 0, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.legal-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.legal-field label {
  color: #dff7fb;
  font-size: 13px;
  font-weight: 900;
}

.legal-field input,
.legal-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #f4fbfc;
  font: inherit;
}

.legal-field .legal-file-input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.legal-file-picker {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #f4fbfc;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.legal-file-picker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b7d0dc;
}

.legal-file-picker strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(210, 255, 0, 0.14);
  color: #d2ff00;
  font-size: 12px;
}

.legal-file-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.legal-file-row .legal-file-picker {
  flex: 1;
}

.legal-file-remove {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
  color: #ff6b6b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.legal-file-remove:hover {
  background: rgba(255, 107, 107, 0.18);
}

.legal-field textarea {
  min-height: 140px;
  resize: vertical;
}

.legal-field input[type="file"] {
  padding: 10px;
}

.legal-status {
  min-height: 22px;
  margin-top: 12px;
  color: #d2ff00;
  font-weight: 800;
}

@media (max-width: 520px) {
  .legal-shell {
    width: min(100% - 18px, 430px);
    padding-top: 14px;
  }

  .legal-card {
    padding: 18px;
    border-radius: 19px;
  }
}
